From 013e186ca661c8519f71840c49f2ee1776f5f3e3 Mon Sep 17 00:00:00 2001 From: splewdge <110092160+splewdge@users.noreply.github.com> Date: Thu, 4 Aug 2022 12:27:27 +0100 Subject: [PATCH] Update ctk_button.py --- customtkinter/widgets/ctk_button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()