mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Merge pull request #2041 from Textualize/simplify-message-namespace
Simplify namespace for inherited messages from ToggleButton
This commit is contained in:
@@ -14,9 +14,6 @@ class Checkbox(ToggleButton):
|
||||
This message can be handled using an `on_checkbox_changed` method.
|
||||
"""
|
||||
|
||||
# https://github.com/Textualize/textual/issues/1814
|
||||
namespace = "checkbox"
|
||||
|
||||
@property
|
||||
def checkbox(self) -> Checkbox:
|
||||
"""The checkbox that was changed."""
|
||||
|
||||
@@ -21,9 +21,6 @@ class RadioButton(ToggleButton):
|
||||
This message can be handled using an `on_radio_button_changed` method.
|
||||
"""
|
||||
|
||||
# https://github.com/Textualize/textual/issues/1814
|
||||
namespace = "radio_button"
|
||||
|
||||
@property
|
||||
def radio_button(self) -> RadioButton:
|
||||
"""The radio button that was changed."""
|
||||
|
||||
Reference in New Issue
Block a user