Skip to content

Commit d64a5c6

Browse files
committed
Update YdszTool.py
1 parent 10a8965 commit d64a5c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

YdszTool.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ def __init__(self):
3131
self.win_box()
3232

3333
def win_box(self):
34-
def func():
35-
if value1.get() == '西丽湖':
36-
box2.config(values=xm1)
37-
box2.set(xm1[0])
38-
elif value1.get() == '留仙洞':
39-
box2.config(values=xm2)
40-
box2.set(xm2[0])
34+
def func(event=None):
35+
if box1.get() == '西丽湖':
36+
box2['values'] = xm1
37+
box2.current(0)
38+
else:
39+
box2['values'] = xm2
40+
box2.current(0)
4141

4242
def sec_run():
4343
flag = True

0 commit comments

Comments
 (0)