From 30be7fea4589394916e41439ab2cb8d75d15183a Mon Sep 17 00:00:00 2001 From: PySimpleGUI Date: Mon, 28 Jun 2021 08:17:05 -0400 Subject: [PATCH] Added class_ parm to the Toplevel windows for the Linux window title problems --- PySimpleGUI.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 11e1e35b..853cd22a 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1,6 +1,6 @@ #!/usr/bin/python3 -version = __version__ = "4.45.0.2 Unreleased\nAdded autoscroll parameter to Multiline.print & cprint - defaults to True (backward compatible), ButtonMenu use font for button as menu font if none is supplied, make a copy of menu definition when making ButtonMenu, made menu definition optional for ButtonMenu so can change only some other settings" +version = __version__ = "4.45.0.3 Unreleased\nAdded autoscroll parameter to Multiline.print & cprint - defaults to True (backward compatible), ButtonMenu use font for button as menu font if none is supplied, make a copy of menu definition when making ButtonMenu, made menu definition optional for ButtonMenu so can change only some other settings, set class_ for Toplevel windows to fix problem with titles on some Linux systems" __version__ = version.split()[0] # For PEP 396 and PEP 345 @@ -14219,11 +14219,10 @@ def StartupTK(window): print('* Error performing wm_overrideredirect *') Window.hidden_master_root.withdraw() # root = tk.Toplevel(Window.hidden_master_root) # This code caused problems when running with timeout=0 and closed with X - root = tk.Toplevel() + root = tk.Toplevel(class_=window.Title) else: # root = tk.Toplevel(Window.hidden_master_root) # This code caused problems when running with timeout=0 and closed with X - root = tk.Toplevel() - + root = tk.Toplevel(class_=window.Title) if window.DebuggerEnabled: root.bind('', window._callback_main_debugger_window_create_keystroke) root.bind('', window._callback_popout_window_create_keystroke)