-
Notifications
You must be signed in to change notification settings - Fork 0
Popups
Lucy Poulton edited this page Aug 2, 2023
·
1 revision
Popups are dialogs that are children of other dialogs. There's nothing special about a popup - they're regular dialogs.
A dialog can open another dialog as a popup by calling Dialog.popup()
. While a dialog has a popup open:
- it will be rendered slightly translucently
- it cannot be interacted with and all its widgets are deactivated (
active
set to false)
Once the popup is closed, the parent returns to how it was before. The popup dialog is its own dialog, and can be interacted with in the same way as any other dialog.
Popup dialogs can also have further popup dialogs.
Alternatively, by setting replace = true
when calling popup()
, the popup dialog will replace the parent dialog entirely. The parent dialog will be closed.