Changed bad if statements that were using 'is' and made '==' instead.

This commit is contained in:
MikeTheWatchGuy 2019-06-26 11:09:42 -04:00
parent 23dfb5f7cc
commit ad100b8e75
22 changed files with 45 additions and 52 deletions

View file

@ -48,15 +48,15 @@ def Everything():
while True:
event, values = window.Read()
if event is 'SaveSettings':
if event == 'SaveSettings':
filename = sg.PopupGetFile('Save Settings', save_as=True, no_window=True)
window.SaveToDisk(filename)
# save(values)
elif event is 'LoadSettings':
elif event == 'LoadSettings':
filename = sg.PopupGetFile('Load Settings', no_window=True)
window.LoadFromDisk(filename)
# load(form)
elif event in ['Exit', None]:
elif event in ('Exit', None):
break
# window.CloseNonBlocking()