mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
31 lines
709 B
Python
31 lines
709 B
Python
import customtkinter
|
|
|
|
app = customtkinter.CTk()
|
|
|
|
tabview_1 = customtkinter._CTkTabview(app)
|
|
tabview_1.pack(padx=20, pady=20)
|
|
|
|
tab_1 = tabview_1.add("tab 1")
|
|
tabview_1.insert(0, "tab 2")
|
|
|
|
tabview_1.add("tab 42")
|
|
tabview_1.set("tab 42")
|
|
tabview_1.delete("tab 42")
|
|
tabview_1.insert(0, "tab 42")
|
|
tabview_1.delete("tab 42")
|
|
tabview_1.insert(1, "tab 42")
|
|
tabview_1.delete("tab 42")
|
|
|
|
tabview_1.move(0, "tab 2")
|
|
|
|
b1 = customtkinter.CTkButton(master=tab_1, text="button tab 1")
|
|
b1.pack(pady=20)
|
|
b2 = customtkinter.CTkButton(master=tabview_1.tab("tab 2"), text="button tab 2")
|
|
b2.pack()
|
|
|
|
# tabview_1.tab("tab 2").configure(fg_color="red")
|
|
tabview_1.configure(state="normal")
|
|
# tabview_1.delete("tab 1")
|
|
|
|
app.mainloop()
|