mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
removed spacing_scaling, now widget_scaling is used
This commit is contained in:
@ -13,7 +13,6 @@ frame_2.grid(row=0, column=1, sticky="nsew", padx=10, pady=10)
|
||||
|
||||
def set_scaling(scaling):
|
||||
customtkinter.set_widget_scaling(scaling)
|
||||
customtkinter.set_spacing_scaling(scaling)
|
||||
|
||||
scaling_button = customtkinter.CTkSegmentedButton(frame_1, values=[0.8, 0.9, 1.0, 1.1, 1.2, 1.3, 1.5, 2.0], command=set_scaling)
|
||||
scaling_button.pack(pady=(2, 10))
|
||||
|
@ -34,7 +34,6 @@ combobox_1 = customtkinter.CTkComboBox(app, variable=variable, values=countries,
|
||||
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)
|
||||
|
||||
|
@ -22,7 +22,6 @@ def button_function():
|
||||
|
||||
def slider_function(value):
|
||||
customtkinter.set_widget_scaling(value * 2)
|
||||
customtkinter.set_spacing_scaling(value * 2)
|
||||
customtkinter.set_window_scaling(value * 2)
|
||||
progressbar_1.set(value)
|
||||
|
||||
|
@ -20,12 +20,11 @@ top_tk.geometry("500x500")
|
||||
|
||||
def button_function():
|
||||
app.geometry(f"{200}x{200}")
|
||||
print("Button click", label_1.text_label.cget("text"))
|
||||
print("Button click", label_1.cget("text"))
|
||||
|
||||
|
||||
def slider_function(value):
|
||||
customtkinter.set_widget_scaling(value * 2)
|
||||
customtkinter.set_spacing_scaling(value * 2)
|
||||
customtkinter.set_window_scaling(value * 2)
|
||||
progressbar_1.set(value)
|
||||
|
||||
|
@ -2,7 +2,6 @@ import customtkinter
|
||||
|
||||
#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