Skip to content

Commit ce23f22

Browse files
authored
update main file
1 parent 73a03c5 commit ce23f22

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cardmaker.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ def datawindow():
4848
com5.pack()
4949
com5['value'] = (['N','R','SR','SSR','UR','IE'])
5050
com5.current(0)
51-
def ling(eve):
51+
def card_cost_1_func(eve):
5252
global card_cost_1
5353
card_cost_1 = com1.get()
54-
def yao(eve):
54+
def card_cost_2_func(eve):
5555
global card_cost_2
5656
card_cost_2 = com2.get()
57-
def xy(eve):
57+
def card_level_func(eve):
5858
global card_level
5959
card_level = com3.get()
60-
def rar(eve):
60+
def rarity(eve):
6161
global rare
6262
rare = com5.get()
6363
CLASS=StringVar()
@@ -69,17 +69,17 @@ def cget():
6969
time.sleep(0.1)
7070
if '生物--' in classes:
7171
classes = '生物--' + classinput.get()
72-
def clas(eve):
72+
def card_class(eve):
7373
global classes
7474
if com4.get() == '生物--種類':
7575
classes = '生物--'
7676
else:
7777
classes = com4.get()
78-
com1.bind('<<ComboboxSelected>>', ling)
79-
com2.bind('<<ComboboxSelected>>', yao)
80-
com3.bind('<<ComboboxSelected>>', xy)
81-
com4.bind('<<ComboboxSelected>>', clas)
82-
com5.bind('<<ComboboxSelected>>', rar)
78+
com1.bind('<<ComboboxSelected>>', card_cost_1_func)
79+
com2.bind('<<ComboboxSelected>>', card_cost_2_func)
80+
com3.bind('<<ComboboxSelected>>', card_level_func)
81+
com4.bind('<<ComboboxSelected>>', card_class)
82+
com5.bind('<<ComboboxSelected>>', rarity)
8383
def savecard():
8484
global issave
8585
issave = 1

0 commit comments

Comments
 (0)