From 186ddb87227ab91dd9e5235d241f9da4ab62c91f Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 18 Jul 2022 13:49:11 -0400 Subject: [PATCH] Removed unnecessary check for isinstance of tuple.... a new pattern lately with tuples as keys. --- DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py b/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py index ee7f27c1..a25bae40 100644 --- a/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py +++ b/DemoPrograms/Demo_Layout_Add_and_Delete_Rows.py @@ -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()