mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
added master kwarg for all widgets and removed *args
This commit is contained in:
@ -49,7 +49,7 @@ class App(customtkinter.CTk):
|
||||
self.entry = customtkinter.CTkEntry(self, placeholder_text="CTkEntry")
|
||||
self.entry.grid(row=3, column=1, columnspan=2, padx=(20, 10), pady=(10, 20), sticky="nsew")
|
||||
|
||||
self.main_button_1 = customtkinter.CTkButton(self, fg_color=None, border_width=2)
|
||||
self.main_button_1 = customtkinter.CTkButton(master=self, fg_color=None, border_width=2)
|
||||
self.main_button_1.grid(row=3, column=3, padx=(10, 20), pady=(10, 20), sticky="nsew")
|
||||
|
||||
self.textbox = customtkinter.CTkTextbox(self)
|
||||
|
16
test/manual_integration_tests/test_tabview.py
Normal file
16
test/manual_integration_tests/test_tabview.py
Normal 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()
|
@ -1,8 +1,8 @@
|
||||
import customtkinter
|
||||
|
||||
customtkinter.set_widget_scaling(0.9)
|
||||
customtkinter.set_window_scaling(0.9)
|
||||
customtkinter.set_spacing_scaling(0.9)
|
||||
#customtkinter.set_widget_scaling(0.9)
|
||||
#customtkinter.set_window_scaling(0.9)
|
||||
#customtkinter.set_spacing_scaling(0.9)
|
||||
|
||||
customtkinter.set_appearance_mode("dark")
|
||||
|
||||
|
Reference in New Issue
Block a user