pdwidgets.widgets.text_box

Read-only formatted text display.

class pdwidgets.widgets.text_box.TextBox(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, format='', text_height=16, scale=1, inverted=False, font_data=None)[source]

Bases: Widget

Read-only formatted text display.

draw(_=None)[source]

Draw the label’s text on the screen, using absolute coordinates.

property char_width

Rendered character width in pixels.

property char_height

Rendered character height in pixels.