@@ -32,11 +32,14 @@ class SpriteButton(ButtonBase):
3232 :param y: The y position of the button.
3333 :param width: The width of the button in tiles.
3434 :param height: The height of the button in tiles.
35+ :param name: A name, or miscellaneous string that is stored on the button.
3536 :param label: The text that appears inside the button. Defaults to not displaying the label.
3637 :param label_font: The button label font.
3738 :param label_color: The color of the button label text. Defaults to 0x0.
39+ :param selected_label: Text that appears when selected
3840 :param string bmp_path: The path of the 3x3 spritesheet Bitmap file
3941 :param string selected_bmp_path: The path of the 3x3 spritesheet Bitmap file to use when pressed
42+ :param int or tuple transparent_index: Index(s) that will be made transparent on the Palette
4043 """
4144
4245 def __init__ (
@@ -82,7 +85,6 @@ def __init__(
8285 elif isinstance (transparent_index , int ):
8386 self ._selected_bmp_palette .make_transparent (0 )
8487
85- print ((width // (self ._bmp .width // 3 ), height // (self ._bmp .height // 3 )))
8688 self ._btn_tilegrid = inflate_tilegrid (
8789 bmp_obj = self ._bmp ,
8890 bmp_palette = self ._bmp_palette ,
@@ -94,7 +96,6 @@ def __init__(
9496 )
9597 self .append (self ._btn_tilegrid )
9698
97- print ("setting label" )
9899 self .label = label
99100
100101 @property
0 commit comments