frame¶
-
class
bgui.frame.
Frame
(parent, name=None, border=None, aspect=None, size=[1, 1], pos=[0, 0], sub_theme='', options=0)¶ Bases:
bgui.widget.Widget
Frame for storing other widgets
Parameters: - parent – the widget’s parent
- name – the name of the widget
- border – the size of the border around the frame (0 for no border)
- 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
-
theme_section
= 'Frame'¶
-
theme_options
= {'Color3': (0, 0, 0, 0), 'Color4': (0, 0, 0, 0), 'BorderSize': 0, 'BorderColor': (0, 0, 0, 1), 'Color1': (0, 0, 0, 0), 'Color2': (0, 0, 0, 0)}¶
-
colors
= None¶ The colors for the four corners of the frame.
-
border_color
= None¶ The color of the border around the frame.