pdwidgets.widgets.text_input

Single-line text input field.

class pdwidgets.widgets.text_input.TextInput(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=True, value=None, padding=None, hint='', text_height=16, radius=6, max_length=None)[source]

Bases: Widget

Single-line editable text field with focus management.

draw(_=None)[source]

Draw the field box, its text or hint, and the cursor when focused.