Removed unnecessary check for isinstance of tuple.... a new pattern lately with tuples as keys.

This commit is contained in:
PySimpleGUI 2022-07-18 13:49:11 -04:00
parent c9cdf53176
commit 186ddb8722
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ def main():
sg.execute_editor(__file__)
elif event == 'Version':
sg.popup_scrolled(__file__, sg.get_versions(), location=window.current_location(), keep_on_top=True, non_blocking=True)
if isinstance(event, tuple):
if event[0] == '-DEL-':
elif event[0] == '-DEL-':
window[('-ROW-', event[1])].update(visible=False)
window.close()