Skip to content

keyboard

pdwidgets.widgets.keyboard

On-screen keyboard widget.

Keyboard(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=False, value=None, padding=None, target=None, row_height=None)

Bases: Widget

On-screen QWERTY keyboard for focused text fields.

On-screen QWERTY keyboard that feeds the focused field.

Attach to a screen, call :meth:show when an input is focused (or pass target). Keys synthesize events.Key and forward them to the target's _key handler. The default target is display.focus_manager.focused (with TextInput._focused as fallback).

hide_keyboard()

Hide the keyboard.

show(target=None)

Show the keyboard, optionally binding target TextInput.