public class OpenFolderDialog extends Dialog:
Selects one existing folder.
import klyn.gui.windows.dialogs
dialog = OpenFolderDialog("Select workspace")
if dialog.showDialog():
print(dialog.selectedFolder)OpenFolderDialog derives from Dialog, inherits its window title, and is modal by default.
| Modifier and Type | Member | Description |
|---|---|---|
| public property | initialFolderinitialFolder as FolderPath |
Folder initially displayed by the chooser. |
| public readonly property | selectedFolderselectedFolder as FolderPath: |
Folder selected by the last successful invocation, or null. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | OpenFolderDialogOpenFolderDialog(title as String = "Select folder"): |
Creates a folder-selection dialog. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | showDialogshowDialog(owner as Window = null) as Boolean throws DialogException: |
Displays the chooser and waits for a folder or cancellation. |