progress_bar¶
- class bgui.progress_bar.ProgressBar(parent, name=None, percent=1.0, sub_theme='', aspect=None, size=[1, 1], pos=[0, 0], options=0)¶
Bases:
Widget
A solid progress bar. Controlled via the ‘percent’ property which assumes percent as a 0-1 floating point number.
- Parameters:
parent – The widget’s parent
name – The name of the widget
percent – The initial percent
sub_theme – Name of a sub_theme defined in the theme file (similar to CSS classes)
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
options – Various other options
- theme_section= 'ProgressBar'
- theme_options= {'FillColor3': (0.0, 0.42, 0.02, 1.0), 'BGColor4': (0, 0, 0, 1), 'BorderSize': 1, 'FillColor4': (0.0, 0.42, 0.02, 1.0), 'BGColor3': (0, 0, 0, 1), 'BGColor1': (0, 0, 0, 1), 'FillColor2': (0.0, 0.42, 0.02, 1.0), 'FillColor1': (0.0, 0.42, 0.02, 1.0), 'BGColor2': (0, 0, 0, 1), 'BorderColor': (0, 0, 0, 1)}
- percent¶