mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
fixed scaling issues for combobox and optionemnu, chatched error in appearance_mode_tracker
This commit is contained in:
@ -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()
|
||||
|
11
test/manual_integration_tests/test_textbox.py
Normal file
11
test/manual_integration_tests/test_textbox.py
Normal 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()
|
Reference in New Issue
Block a user