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:
@@ -149,7 +149,6 @@ class App(customtkinter.CTk):
|
||||
|
||||
def change_scaling(self, new_scaling: str):
|
||||
new_scaling_float = int(new_scaling.replace("%", "")) / 100
|
||||
customtkinter.set_spacing_scaling(new_scaling_float)
|
||||
customtkinter.set_widget_scaling(new_scaling_float)
|
||||
|
||||
def sidebar_button_callback(self):
|
||||
|
@@ -54,6 +54,9 @@ class App(customtkinter.CTk):
|
||||
hover_color="#C77C78", command=self.button_function)
|
||||
self.button_5.grid(row=0, column=1, padx=20, pady=20)
|
||||
|
||||
self.scaling_button = customtkinter.CTkSegmentedButton(self, values=[0.8, 0.9, 1.0, 1.1, 1.2, 1.5])
|
||||
self.scaling_button.grid(row=1, column=0, pady=(0, 20))
|
||||
|
||||
def load_image(self, path, image_size):
|
||||
""" load rectangular image with path relative to PATH """
|
||||
return ImageTk.PhotoImage(Image.open(PATH + path).resize((image_size, image_size)))
|
||||
|
Reference in New Issue
Block a user