Skip to content

toast

pdwidgets.widgets.toast

Transient toast notification.

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)

Bases: Widget

Transient bottom banner that auto-hides after a duration.

Transient bottom banner for non-modal feedback.

Call :meth:show with a message; the toast auto-hides after duration_ms using the display's task list.

draw(area=None)

Draw a rounded toast pill.

show(message=None, duration_ms=None)

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