frame_button¶
Bases:
bgui.widget.Widget
A clickable frame-based button.
Parameters: - parent – the widget’s parent
- name – the name of the widget
- base_color – the color of the button
- text – the text to display (this can be changed later via the text property)
- font – the font to use
- pt_size – the point size of the text to draw (defaults to 30 if None)
- aspect – constrain the widget size to a specified aspect ratio
- size – a tuple containing the width and height
- pos – a tuple containing the x and y position
- sub_theme – name of a sub_theme defined in the theme file (similar to CSS classes)
- options – various other options