pdwidgets.widgets.drawer

Drawer — side panel + scrim.

class pdwidgets.widgets.drawer.Drawer(parent, title=None, w=None, side='left', fg=None, bg=None, scrim=None, on_dismiss=None)[source]

Bases: Widget

Modal side panel that slides in from the left or right.

property content

The Card panel; add child widgets here.

show()[source]

Show the drawer, grab modal capture, and redraw.

hide_drawer()[source]

Hide the drawer, release modal capture, and call on_dismiss.

draw(area=None)[source]

Fill the scrim behind the side panel.