Widget: add enabled property (#35944)

* add enabled

* sort

* rename

* rest

* rm that
This commit is contained in:
Shane Smiskol
2025-08-06 22:00:12 -07:00
committed by GitHub
parent 8b90c210f8
commit 6cf710d4cb
7 changed files with 46 additions and 42 deletions
-2
View File
@@ -172,7 +172,6 @@ class Button(Widget):
border_radius: int = 10,
text_alignment: TextAlignment = TextAlignment.CENTER,
text_padding: int = 20,
enabled: bool = True,
icon = None,
multi_touch: bool = False,
):
@@ -187,7 +186,6 @@ class Button(Widget):
self._click_callback = click_callback
self._multi_touch = multi_touch
self.enabled = enabled
def set_text(self, text):
self._label.set_text(text)