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:
WidgetRead-only formatted text display.
- property char_width
Rendered character width in pixels.
- property char_height
Rendered character height in pixels.