diff --git a/customtkinter/widgets/ctk_button.py b/customtkinter/widgets/ctk_button.py index 0e8cfb9..ceb64f6 100644 --- a/customtkinter/widgets/ctk_button.py +++ b/customtkinter/widgets/ctk_button.py @@ -362,7 +362,7 @@ class CTkButton(CTkBaseClass): def clicked(self, event=None): if self.command is not None: - if self.state is not tkinter.DISABLED: + if self.state != tkinter.DISABLED: # click animation: change color with .on_leave() and back to normal after 100ms with click_animation() self.on_leave()