From ba1bf8c4b8548c252e9a128b6a73b203762145f4 Mon Sep 17 00:00:00 2001 From: Tom Schimansky Date: Fri, 5 Nov 2021 12:21:55 +0100 Subject: [PATCH] changed function names to lower case --- customtkinter/customtkinter_button.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/customtkinter/customtkinter_button.py b/customtkinter/customtkinter_button.py index 8550872..52ce305 100644 --- a/customtkinter/customtkinter_button.py +++ b/customtkinter/customtkinter_button.py @@ -30,7 +30,7 @@ class CTkButton(tkinter.Frame): AppearanceModeTracker.add(self.set_appearance_mode) - self.gridConfigure() + self.configure_basic_grid() if bg_color is None: if isinstance(self.master, CTkFrame): @@ -106,15 +106,15 @@ class CTkButton(tkinter.Frame): self.image_label = None # Each time an item is resized due to pack position mode, the binding Configure is called on the widget - self.bind('', self.updateDimensions) + self.bind('', self.update_dimensions) self.draw() - def gridConfigure(self): + def configure_basic_grid(self): # Configuration of a basic grid in which all elements of CTkButtons are centered on one row and one column self.grid_rowconfigure(0, weight=1) self.grid_columnconfigure(0, weight=1) - def updateDimensions(self, event): + def update_dimensions(self, event): # We update the dimensions of the internal elements of CTkButton Widget self.canvas.config(width=event.width, height=event.height) self.width = event.width