Update ctk_button.py

This commit is contained in:
splewdge 2022-08-04 12:27:27 +01:00 committed by GitHub
parent 6df8a1f44a
commit 013e186ca6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ class CTkButton(CTkBaseClass):
def clicked(self, event=None): def clicked(self, event=None):
if self.command is not 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() # click animation: change color with .on_leave() and back to normal after 100ms with click_animation()
self.on_leave() self.on_leave()