From b59ae2511bef54f21b3b33c479acf654f6059878 Mon Sep 17 00:00:00 2001 From: LupaDevStudio Date: Mon, 11 Dec 2023 11:24:51 +0100 Subject: [PATCH] change image button to have a working on release effect --- tools/kivy_tools/image_button.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/kivy_tools/image_button.py b/tools/kivy_tools/image_button.py index 46b231e..d727dba 100644 --- a/tools/kivy_tools/image_button.py +++ b/tools/kivy_tools/image_button.py @@ -8,6 +8,7 @@ def __init__(self, source="", release_function=lambda: 1 + 1, **kwargs): self.release_function = release_function self.source = source self.fit_mode = "contain" + self.always_release = True def on_press(self): self.opacity = 0.8