OpenFolderDialog
classin packageklyn.gui.windows.dialogs
public class OpenFolderDialog extends Dialog:
└ Widget
└ Dialog
└ OpenFolderDialog

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.

Inherited Attributes
attributeInherited Attributes from Dialog: terminal, title
attributeInherited Attributes from Widget: lastRenderAnsi, lastRenderHeight, lastRenderPlain, lastRenderWidth, layout, visible
Properties
Modifier and Type Member Description
public property initialFolder
initialFolder as FolderPath
Folder initially displayed by the chooser.
public readonly property selectedFolder
selectedFolder as FolderPath:
Folder selected by the last successful invocation, or null.
Inherited Properties
propertyInherited Properties from Widget: focusable, focused, lastRenderFrame, position, size
propertyInherited Properties from Object: type
Inherited Events
eventInherited Events from Dialog: accepted, cancelled
Constructors
Modifier and Type Member Description
public OpenFolderDialog
OpenFolderDialog(title as String = "Select folder"):
Creates a folder-selection dialog.
Methods
Modifier and Type Member Description
public showDialog
showDialog(owner as Window = null) as Boolean throws DialogException:
Displays the chooser and waits for a folder or cancellation.
Inherited Methods
methodInherited Methods from Dialog: accept, cancel, close, show
methodInherited Methods from Widget: add, baseAnsiStyle, captureRenderFrame, children, clearChildren, configureCursor, focusNext, handleEvent, handleMouseEvent, hasActiveTextInput, idle, paint, paintToFrame, performLayout, refresh, renderAnsiSnapshot, renderPlainSnapshot, scrollbarThumbGlyph, scrollbarTrackGlyph, terminalPromptVisible
methodInherited Methods from Object: deepCopy, fromJson, hash, toDict, toJson, toString, toXml