klyn.gui.windows.dialogs.OpenFolderDialog.showDialog
method
public showDialog(owner as Window = null) as Boolean throws DialogException:
Description

Displays the chooser and waits for a folder or cancellation.

Parameters
ParameterDescription
ownerOptional owner window used for centering and modality.
Returns

true after a valid folder was selected; false only when cancelled.

Throws
  • DialogException if the backend fails or the selected folder becomes unavailable before validation completes.
Example
dialog = OpenFolderDialog()
if dialog.showDialog(window):
print(dialog.selectedFolder)