Renamed return value from Read call from button to event... EVERYWHERE
This commit is contained in:
parent
43526e0182
commit
c79a8772cc
86 changed files with 7992 additions and 12709 deletions
|
@ -22,8 +22,8 @@ def PopupDropDown(title, text, values):
|
|||
window = sg.Window(title).Layout([[sg.Text(text)],
|
||||
[sg.DropDown(values, key='_drop')],
|
||||
[sg.OK(), sg.Cancel()]])
|
||||
button, values = window.Read()
|
||||
return None if button != 'OK' else values['_drop']
|
||||
event, values = window.Read()
|
||||
return None if event != 'OK' else values['_drop']
|
||||
|
||||
|
||||
# ----------------------- Calling your PopupDropDown function -----------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue