Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TomSchimansky committed Aug 18, 2022
1 parent d9db3b6 commit 9a144bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
14 changes: 8 additions & 6 deletions customtkinter/windows/ctk_tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,19 +121,21 @@ def update(self):
if self.window_exists is False:
self.window_exists = True

if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
# print("window dont exists -> deiconify in update")
self.deiconify()
if sys.platform.startswith("win"):
if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
# print("window dont exists -> deiconify in update")
self.deiconify()

super().update()

def mainloop(self, *args, **kwargs):
if not self.window_exists:
self.window_exists = True

if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
# print("window dont exists -> deiconify in mainloop")
self.deiconify()
if sys.platform.startswith("win"):
if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
# print("window dont exists -> deiconify in mainloop")
self.deiconify()

super().mainloop(*args, **kwargs)

Expand Down
1 change: 0 additions & 1 deletion test/manual_integration_tests/complex_example_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ def __init__(self):
dynamic_resizing=False,
values=["Value 1", "Value 2", "Value Long Long Long"])
self.optionmenu_1.grid(row=0, column=0, padx=20, pady=(20, 10), sticky="ew")
self.optionmenu_1.configure(dropdown_text_font=("Times New Roman", 20))
self.combobox_1 = customtkinter.CTkComboBox(self.optionemnu_combobox_frame,
values=["Value 1", "Value 2", "Value Long....."])
self.combobox_1.grid(row=1, column=0, padx=20, pady=(10, 10), sticky="ew")
Expand Down

0 comments on commit 9a144bf

Please sign in to comment.