fixed scaling issues for combobox and optionemnu, chatched error in appearance_mode_tracker

This commit is contained in:
Tom Schimansky
2022-06-28 11:16:28 +02:00
parent b891032e2e
commit e15bc5933d
8 changed files with 199 additions and 13 deletions

View File

@ -4,7 +4,7 @@ import customtkinter
app = customtkinter.CTk()
app.title('Test OptionMenu ComboBox.py')
app.geometry('400x300')
app.geometry('400x500')
def select_callback(choice):
@ -33,4 +33,12 @@ combobox_tk.pack(pady=10, padx=10)
combobox_1 = customtkinter.CTkComboBox(app, variable=None, values=countries, command=select_callback, width=300)
combobox_1.pack(pady=20, padx=10)
def set_new_scaling(scaling):
customtkinter.set_spacing_scaling(scaling)
customtkinter.set_window_scaling(scaling)
customtkinter.set_widget_scaling(scaling)
scaling_slider = customtkinter.CTkSlider(app, command=set_new_scaling, from_=0, to=2)
scaling_slider.pack(pady=20, padx=10)
app.mainloop()

View File

@ -0,0 +1,11 @@
import customtkinter
app = customtkinter.CTk()
app.grid_rowconfigure(0, weight=1)
app.grid_columnconfigure(0, weight=1)
textbox = customtkinter.CTkTextbox(app)
textbox.grid(row=0, column=0, padx=20, pady=20, sticky="nsew")
app.mainloop()