pdwidgets.widgets.toast

Transient toast notification.

class pdwidgets.widgets.toast.Toast(parent, x=0, y=0, w=None, h=None, align=None, align_to=None, fg=None, bg=None, visible=False, value='', padding=None, duration_ms=2000, radius=8)[source]

Bases: Widget

Transient bottom banner that auto-hides after a duration.

show(message=None, duration_ms=None)[source]

Show the toast with message (keeps current text if omitted).

draw(area=None)[source]

Draw a rounded toast pill.