public class Dialog extends MainWindow:
Base class for standalone dialog windows.
A dialog owns the same themed content surface as a MainWindow, but is intended for short modal interactions. Specialized dialogs can compose their controls through centralWidget and run a nested event loop with run().
dialog = Dialog("Confirmation")
dialog.centralWidget.add(Label("Continue?"))
dialog.run()| Modifier and Type | Member | Description |
|---|---|---|
| public property | modalmodal as Boolean = false |
Whether this dialog is intended to block interaction with its owner while it is displayed. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | Dialog | Creates an empty dialog window. |