Merge pull request #352 from splewdge/master

Fix for issue #351
This commit is contained in:
Tom Schimansky 2022-08-05 08:49:38 -04:00 committed by GitHub
commit 91efc0ffc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()