frame¶
- class bgui.frame.Frame(parent, name=None, border=None, aspect=None, size=[1, 1], pos=[0, 0], sub_theme='', options=0)¶
Bases:
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.