From 135c0703d9a66719bffe01df114473d398b16f7a Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Thu, 5 May 2022 07:19:20 -0400 Subject: [PATCH] Fixed use custom title & menubar bug - wasn't remembering the setting and was stuck in custom mode after selecting it once. Removed the debug window print --- DemoPrograms/Demo_All_Elements_Simple.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DemoPrograms/Demo_All_Elements_Simple.py b/DemoPrograms/Demo_All_Elements_Simple.py index bd9c7a0b..fffe50ed 100644 --- a/DemoPrograms/Demo_All_Elements_Simple.py +++ b/DemoPrograms/Demo_All_Elements_Simple.py @@ -84,7 +84,7 @@ window = make_window() while True: event, values = window.read() - sg.Print(event, values) + # sg.Print(event, values) if event == sg.WIN_CLOSED or event == 'Exit': break if event == 'Edit Me': @@ -95,6 +95,7 @@ while True: window = make_window() if event == '-USE CUSTOM TITLEBAR-': use_custom_titlebar = values['-USE CUSTOM TITLEBAR-'] + sg.set_options(use_custom_titlebar=use_custom_titlebar) window.close() window = make_window() elif event == 'Version':