mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
Provide a default label for the toggle buttons
If one isn't provided it'll be an empty string.
This commit is contained in:
@@ -110,7 +110,7 @@ class ToggleButton(Static, can_focus=True):
|
|||||||
|
|
||||||
def __init__(
|
def __init__(
|
||||||
self,
|
self,
|
||||||
label: TextType,
|
label: TextType = "",
|
||||||
value: bool = False,
|
value: bool = False,
|
||||||
button_first: bool = True,
|
button_first: bool = True,
|
||||||
*,
|
*,
|
||||||
|
|||||||
Reference in New Issue
Block a user