pdwidgets.widgets.bottom_sheet

BottomSheet — modal slide-up panel + scrim.

class pdwidgets.widgets.bottom_sheet.BottomSheet(parent, title=None, h=None, fg=None, bg=None, scrim=None, on_dismiss=None)[source]

Bases: Widget

Modal slide-up panel with scrim tap-to-dismiss.

property content

Attach children to the panel card.

show()[source]

Show the sheet, grab modal capture, and redraw.

hide_sheet()[source]

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

draw(area=None)[source]

Fill the scrim behind the slide-up panel.