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:
Dave Pearson
2023-02-13 15:43:40 +00:00
parent bf1188c712
commit 8379945b60

View File

@@ -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):