File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 2
2
3
3
# --- functions ---
4
4
5
- def on_change_selection (value ):
5
+ def on_select (value ):
6
6
print (' value:' , value )
7
7
print ('selected:' , selected .get ())
8
8
@@ -19,7 +19,7 @@ def on_change_selection(value):
19
19
#selected = tk.StringVar()
20
20
#selected.set(options[0])
21
21
22
- op = tk .OptionMenu (root , selected , * options , command = on_change_selection )
22
+ op = tk .OptionMenu (root , selected , * options , command = on_select )
23
23
op .pack ()
24
24
25
25
# ---
Original file line number Diff line number Diff line change 2
2
3
3
# --- functions ---
4
4
5
- def on_change_selection (value ):
5
+ def on_select (value ):
6
6
print (' value:' , value , '--->' , data [value ])
7
7
print ('selected:' , selected .get (), '--->' , data [value ])
8
8
@@ -25,7 +25,7 @@ def on_change_selection(value):
25
25
#selected = tk.StringVar()
26
26
#selected.set(options[0])
27
27
28
- op = tk .OptionMenu (root , selected , * options , command = on_change_selection )
28
+ op = tk .OptionMenu (root , selected , * options , command = on_select )
29
29
op .pack ()
30
30
31
31
# ---
You can’t perform that action at this time.
0 commit comments