mirror of
https://github.com/TomSchimansky/CustomTkinter.git
synced 2023-08-10 21:13:13 +03:00
Update ctk_button.py
This commit is contained in:
parent
6df8a1f44a
commit
013e186ca6
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user