@@ -49,11 +49,13 @@ class ButtonBase(Group):
49
49
:param int height: The height of the button in tiles.
50
50
:param Optional[str] name: A name, or miscellaneous string that is stored on the button.
51
51
:param Optional[str] label: The text that appears inside the button.
52
- :param Optional[FontProtocol] label_font: The button label font. Defaults to ''terminalio.FONT''
53
- :param Optional[Union[int, Tuple[int, int, int]]] label_color: The color of the button label text. Defaults to 0x0.
54
- Accepts an int or a tuple of 3 integers representing RGB values. Defaults to an inverse of label_color.
55
- :param Optional[Union[int, Tuple[int, int, int]]] selected_label: The color of button label text when the button is selected.
56
- Accepts an int or a tuple of 3 integers representing RGB values. Defaults to an inverse of label_color.
52
+ :param Optional[FontProtocol] label_font: The button label font.
53
+ Defaults to ''terminalio.FONT''
54
+ :param Optional[Union[int, Tuple[int, int, int]]] label_color: The color of the label text.
55
+ Defaults to 0x0. Accepts an int or a tuple of 3 integers representing RGB values.
56
+ :param Optional[Union[int, Tuple[int, int, int]]] selected_label: The color of the label text
57
+ when the button is selected. Accepts an int or a tuple of 3 integers representing RGB values.
58
+ Defaults to an inverse of label_color.
57
59
:param Optional[int] label_scale: The scale factor used for the label. Defaults to 1.
58
60
"""
59
61
@@ -67,8 +69,8 @@ def __init__(
67
69
name : Optional [str ] = None ,
68
70
label : Optional [str ] = None ,
69
71
label_font : Optional [FontProtocol ] = None ,
70
- label_color : Optional [Union [int , tuple [int , int , int ]]] = 0x0 ,
71
- selected_label : Optional [Union [int , tuple [int , int , int ]]] = None ,
72
+ label_color : Optional [Union [int , Tuple [int , int , int ]]] = 0x0 ,
73
+ selected_label : Optional [Union [int , Tuple [int , int , int ]]] = None ,
72
74
label_scale : Optional [int ] = 1 ,
73
75
) -> None :
74
76
super ().__init__ (x = x , y = y )
@@ -156,7 +158,7 @@ def selected_label(self) -> int:
156
158
return self ._selected_label
157
159
158
160
@selected_label .setter
159
- def selected_label (self , new_color : Union [int , tuple [int , int , int ]]) -> None :
161
+ def selected_label (self , new_color : Union [int , Tuple [int , int , int ]]) -> None :
160
162
self ._selected_label = _check_color (new_color )
161
163
162
164
@property
@@ -165,6 +167,6 @@ def label_color(self) -> int:
165
167
return self ._label_color
166
168
167
169
@label_color .setter
168
- def label_color (self , new_color : Union [int , tuple [int , int , int ]]) -> None :
170
+ def label_color (self , new_color : Union [int , Tuple [int , int , int ]]) -> None :
169
171
self ._label_color = _check_color (new_color )
170
172
self ._label .color = self ._label_color
0 commit comments