From 0131210a24c09c819c4f44a7a6601c22f4f03043 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=20Sch=C3=A4chinger?= <74455957+MikaSchaechinger@users.noreply.github.com> Date: Sun, 24 Sep 2023 16:50:06 +0200 Subject: [PATCH] Update ctk_button.py Little Update for the _clicked method. self._on_leave gets None as an argument. Reason: By overwriting the _on_leave method, the code still works when the method does not have event=None --- customtkinter/windows/widgets/ctk_button.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customtkinter/windows/widgets/ctk_button.py b/customtkinter/windows/widgets/ctk_button.py index d08422bf..56425ff9 100644 --- a/customtkinter/windows/widgets/ctk_button.py +++ b/customtkinter/windows/widgets/ctk_button.py @@ -546,7 +546,7 @@ def _clicked(self, event=None): if self._state != tkinter.DISABLED: # click animation: change color with .on_leave() and back to normal after 100ms with click_animation() - self._on_leave() + self._on_leave(None) self._click_animation_running = True self.after(100, self._click_animation)