label

class bgui.label.Label(parent, name=None, text='', font=None, pt_size=None, color=None, outline_color=None, outline_size=None, outline_smoothing=None, pos=[0, 0], sub_theme='', options=0)

Bases: Widget

Widget for displaying images

Parameters:
  • parent – The widget’s parent

  • name – The name of the widget

  • 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)

  • color – The color to use when rendering the font

  • 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= 'Label'
theme_options= {'Size': 30, 'Font': '', 'OutlineSize': 0, 'OutlineSmoothing': False, 'Color': (1, 1, 1, 1), 'OutlineColor': (0, 0, 0, 1)}
text

The text to display

pt_size

The point size of the label’s font