Dialogs#
One-shot dialog verbs for prompting the user, plus the reusable dialog classes
behind them. The verbs — alert, confirm, toast, and the ask_*
family — are on the top-level compose surface and cover the common cases in a
single call. The classes live in bootstack.dialogs for when a verb isn’t
enough (a custom layout, a reusable instance, or direct control over the result).
For task-oriented introductions see the Dialogs & Alerts guide and the dialog pages in the Widgets catalog.
Verbs#
Show a dialog and get the result in one call. Each centers on the active window,
blocks until dismissed, and returns the user’s choice (or None on cancel).
Show a message dialog with an OK button. |
|
Show a color chooser dialog. |
|
Show a calendar date-picker dialog. |
|
Show a calendar dialog for selecting a start and end date range. |
|
Show a native folder chooser and return the chosen directory. |
|
Show a multi-select filter dialog. |
|
Show a float-input dialog with optional range validation. |
|
Show a font selector dialog. |
|
Show an integer-input dialog with optional range validation. |
|
Show a dropdown-selection dialog. |
|
Show a native open dialog for a single file and return its path. |
|
Show a native open dialog allowing several files. |
|
Show a native save dialog and return the chosen path. |
|
Show a text-input dialog. |
|
Show a confirmation dialog. |
|
Show a passive toast that dismisses itself, and return immediately. |
Dialog classes#
Construct a dialog directly for custom content, reuse, or explicit lifecycle
control. ColorChoice and FontChoice are the result values returned by the
color and font dialogs.
A dialog for choosing a color using a hue/saturation spectrum. |
|
A color selected from |
|
A flexible dialog window using the builder pattern. |
|
Specification for a dialog button. |
|
A dialog for selecting multiple items from a list. |
|
A font selected from |
|
A dialog for selecting a font family, size, weight, slant, and effects. |
|
A dialog window that embeds a Form for structured data entry. |
Type aliases#
- type bootstack.dialogs.SeverityToken#
Severity level for an alert or toast —
'info','warning','danger','success'.