public showDialog(owner as Window = null) as Boolean throws DialogException
Displays the chooser and waits for a selection or cancellation.
| Parameter | Description |
|---|---|
owner | Optional owner window used for centering and modality. |
true after a valid selection; false only when cancelled.
dialog = OpenFileDialog()
if dialog.showDialog(window):
print(dialog.selectedFiles[0].read())