Calendar chooser window now stays on top of other windows

This commit is contained in:
MikeTheWatchGuy 2019-01-16 16:37:29 -05:00
parent 7a7fac519f
commit e0d3fb3f73
1 changed files with 1 additions and 0 deletions

View File

@ -1600,6 +1600,7 @@ class Button(Element):
should_submit_window = False should_submit_window = False
root = tk.Toplevel() root = tk.Toplevel()
root.title('Calendar Chooser') 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 = 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') self.TKCal.pack(expand=1, fill='both')
root.update() root.update()