added no_color_updates option for set_scaling methods, added transparency effect on Windows when window scaling, changed scaling loop times

This commit is contained in:
TomSchimansky
2022-10-15 01:02:54 +02:00
parent 205cdae5f9
commit 9ffe61dd54
18 changed files with 70 additions and 57 deletions

View File

@ -14,7 +14,7 @@ class App(customtkinter.CTk):
self.title("CustomTkinter complex_example.py")
self.geometry(f"{1100}x{580}")
self.minsize(800, 400)
self.maxsize(1300, 700)
#self.maxsize(1200, 700)
self.protocol("WM_DELETE_WINDOW", self.on_closing) # call .on_closing() when app gets closed
# configure grid layout (4x4)
@ -23,7 +23,7 @@ class App(customtkinter.CTk):
self.grid_rowconfigure((0, 1, 2), weight=1)
# create sidebar frame with widgets
self.sidebar_frame = customtkinter.CTkFrame(self, width=140)
self.sidebar_frame = customtkinter.CTkFrame(self, width=140, corner_radius=0)
self.sidebar_frame.grid(row=0, column=0, rowspan=4, sticky="nsew")
self.sidebar_frame.grid_rowconfigure(4, weight=1)
self.logo_label = customtkinter.CTkLabel(self.sidebar_frame, text="CustomTkinter", font=("Roboto", -16))

View File

@ -2,7 +2,7 @@ import customtkinter
app = customtkinter.CTk()
tabview_1 = customtkinter._CTkTabview(app, state="disabled")
tabview_1 = customtkinter._CTkTabview(app)
tabview_1.pack(padx=20, pady=20)
tab_1 = tabview_1.add("tab 1")