Merge pull request #5701 from PySimpleGUI/Dev-latest
Removed unnecessary check for isinstance of tuple.... a new pattern l…
This commit is contained in:
commit
23b69a923c
|
@ -56,8 +56,7 @@ def main():
|
||||||
sg.execute_editor(__file__)
|
sg.execute_editor(__file__)
|
||||||
elif event == 'Version':
|
elif event == 'Version':
|
||||||
sg.popup_scrolled(__file__, sg.get_versions(), location=window.current_location(), keep_on_top=True, non_blocking=True)
|
sg.popup_scrolled(__file__, sg.get_versions(), location=window.current_location(), keep_on_top=True, non_blocking=True)
|
||||||
if isinstance(event, tuple):
|
elif event[0] == '-DEL-':
|
||||||
if event[0] == '-DEL-':
|
|
||||||
window[('-ROW-', event[1])].update(visible=False)
|
window[('-ROW-', event[1])].update(visible=False)
|
||||||
window.close()
|
window.close()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue