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: bgui.widget.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 – sub type of theme to use
- 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 = {'BorderSize': 1, 'BorderColor': (0, 0, 0, 1), 'BGColor2': (0, 0, 0, 1), 'BGColor3': (0, 0, 0, 1), 'FillColor4': (0.0, 0.42, 0.02, 1.0), 'BGColor1': (0, 0, 0, 1), 'FillColor2': (0.0, 0.42, 0.02, 1.0), 'FillColor3': (0.0, 0.42, 0.02, 1.0), 'BGColor4': (0, 0, 0, 1), 'FillColor1': (0.0, 0.42, 0.02, 1.0)}¶
- percent¶