Changed ReadNonBlocking to Finalize for forms needing to do an Update prior to Read

This commit is contained in:
MikeTheWatchGuy 2018-09-14 12:17:19 -04:00
parent 4f43f7bcaf
commit 21bbb7fca8
12 changed files with 99 additions and 34 deletions

View file

@ -754,7 +754,7 @@ listbox_values = [key for key in fig_dict.keys()]
while True:
sg.ChangeLookAndFeel('Dark')
sg.SetOptions(element_padding=(0,0))
# sg.SetOptions(element_padding=(0,0))
col_listbox = [[sg.Listbox(values=listbox_values, size=(max(len(x) for x in listbox_values),min(len(listbox_values), 20)), change_submits=False, key='func')],
[sg.ReadFormButton('Run', pad=(0,0)), sg.ReadFormButton('Show Code', button_color=('white', 'gray25'), pad=(0,0)), sg.Exit(button_color=('white', 'firebrick4'), pad=(0,0))]]