mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
small fixes
This commit is contained in:
parent
d9db3b64af
commit
9a144bfc6b
@ -121,6 +121,7 @@ class CTk(tkinter.Tk):
|
|||||||
if self.window_exists is False:
|
if self.window_exists is False:
|
||||||
self.window_exists = True
|
self.window_exists = True
|
||||||
|
|
||||||
|
if sys.platform.startswith("win"):
|
||||||
if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
|
if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
|
||||||
# print("window dont exists -> deiconify in update")
|
# print("window dont exists -> deiconify in update")
|
||||||
self.deiconify()
|
self.deiconify()
|
||||||
@ -131,6 +132,7 @@ class CTk(tkinter.Tk):
|
|||||||
if not self.window_exists:
|
if not self.window_exists:
|
||||||
self.window_exists = True
|
self.window_exists = True
|
||||||
|
|
||||||
|
if sys.platform.startswith("win"):
|
||||||
if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
|
if not self.withdraw_called_before_window_exists and not self.iconify_called_before_window_exists:
|
||||||
# print("window dont exists -> deiconify in mainloop")
|
# print("window dont exists -> deiconify in mainloop")
|
||||||
self.deiconify()
|
self.deiconify()
|
||||||
|
@ -73,7 +73,6 @@ class App(customtkinter.CTk):
|
|||||||
dynamic_resizing=False,
|
dynamic_resizing=False,
|
||||||
values=["Value 1", "Value 2", "Value Long Long Long"])
|
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.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,
|
self.combobox_1 = customtkinter.CTkComboBox(self.optionemnu_combobox_frame,
|
||||||
values=["Value 1", "Value 2", "Value Long....."])
|
values=["Value 1", "Value 2", "Value Long....."])
|
||||||
self.combobox_1.grid(row=1, column=0, padx=20, pady=(10, 10), sticky="ew")
|
self.combobox_1.grid(row=1, column=0, padx=20, pady=(10, 10), sticky="ew")
|
||||||
|
Loading…
Reference in New Issue
Block a user