added master kwarg for all widgets and removed *args

This commit is contained in:
Tom Schimansky
2022-10-06 15:53:52 +02:00
parent 4616561c13
commit 63195943b2
21 changed files with 205 additions and 47 deletions

View File

@@ -0,0 +1,16 @@
import customtkinter
import tkinter.ttk as ttk
app = customtkinter.CTk()
tabview = customtkinter._CTkTabview(app)
tabview.pack(pady=20, padx=20)
tabview.create_tab(identifier="tab1", text="Tab 1")
tabview.select_tab("tab1")
switch = customtkinter.CTkSwitch(app, text="Darkmode", onvalue="dark", offvalue="light",
command=lambda: customtkinter.set_appearance_mode(switch.get()))
switch.pack(padx=20, pady=20)
app.mainloop()