31
31
pass
32
32
33
33
34
- def _check_color (color : Optional [Union [int , tuple [int , int , int ]]]) -> Optional [ int ] :
34
+ def _check_color (color : Optional [Union [int , tuple [int , int , int ]]]) -> int :
35
35
# if a tuple is supplied, convert it to a RGB number
36
36
if isinstance (color , tuple ):
37
37
r , g , b = color
@@ -47,14 +47,13 @@ class ButtonBase(Group):
47
47
:param int y: The y position of the button.
48
48
:param int width: The width of the button in tiles.
49
49
:param int height: The height of the button in tiles.
50
- :param str name: A name, or miscellaneous string that is stored on the button.
51
- :param str label: The text that appears inside the button.
52
- :param FontProtocol label_font: The button label font. Defaults to ''terminalio.FONT''
53
- :param int|Tuple(int, int, int) label_color: The color of the button label text.
54
- Accepts an int or a tuple of 3 integers representing RGB values. Defaults to 0x0.
55
- :param int|Tuple(int, int, int) selected_label: The color of button label text when the button is selected.
50
+ :param Optional[str] name: A name, or miscellaneous string that is stored on the button.
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[int] label_color: The color of the button label text. Defaults to 0x0.
54
+ :param Optional[Union[int, Tuple[int, int, int]]] selected_label: The color of button label text when the button is selected.
56
55
Accepts an int or a tuple of 3 integers representing RGB values. Defaults to an inverse of label_color.
57
- :param int label_scale: The scale factor used for the label. Defaults to 1.
56
+ :param Optional[ int] label_scale: The scale factor used for the label. Defaults to 1.
58
57
"""
59
58
60
59
def __init__ (
0 commit comments