mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Remove commented out code from Button
Some hangover from the work to migrate `disabled` out of `Button` and into `Widget`, that I forgot to remove.
This commit is contained in:
@@ -220,10 +220,6 @@ class Button(Static, can_focus=True):
|
||||
self.remove_class(f"-{old_variant}")
|
||||
self.add_class(f"-{variant}")
|
||||
|
||||
# def watch_disabled(self, disabled: bool) -> None:
|
||||
# self.set_class(disabled, "-disabled")
|
||||
# self.can_focus = not disabled
|
||||
|
||||
def validate_label(self, label: RenderableType) -> RenderableType:
|
||||
"""Parse markup for self.label"""
|
||||
if isinstance(label, str):
|
||||
|
||||
Reference in New Issue
Block a user