From e0d3fb3f736f2ee630628f05760345cae63328f2 Mon Sep 17 00:00:00 2001 From: MikeTheWatchGuy Date: Wed, 16 Jan 2019 16:37:29 -0500 Subject: [PATCH] Calendar chooser window now stays on top of other windows --- PySimpleGUI.py | 1 + 1 file changed, 1 insertion(+) diff --git a/PySimpleGUI.py b/PySimpleGUI.py index 69df59f3..9de4cd62 100644 --- a/PySimpleGUI.py +++ b/PySimpleGUI.py @@ -1600,6 +1600,7 @@ class Button(Element): should_submit_window = False root = tk.Toplevel() root.title('Calendar Chooser') + root.wm_attributes("-topmost", 1) self.TKCal = TKCalendar(master=root, firstweekday=calendar.SUNDAY, target_element=target_element, close_when_chosen=self.CalendarCloseWhenChosen, default_date=self.DefaultDate_M_D_Y ) self.TKCal.pack(expand=1, fill='both') root.update()