public class OpenFileDialog extends FileDialog:
Selects one or more existing regular files.
import klyn.gui.windows.dialogs
dialog = OpenFileDialog("Open sources")
dialog.allowMultiple = true
dialog.filters = [FileDialogFilter("Klyn sources", "*.kn")]
if dialog.showDialog():
for file in dialog.selectedFiles:
print(file)| Modifier and Type | Member | Description |
|---|---|---|
| public property | allowMultipleallowMultiple as Boolean = false |
Whether the user can select more than one file. |
| public readonly property | selectedFiles | Files selected by the last successful dialog invocation. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | OpenFileDialogOpenFileDialog(title as String = "Open file"): |
Creates an open-file dialog. |
| Modifier and Type | Member | Description |
|---|---|---|
| public | showDialogshowDialog(owner as Window = null) as Boolean throws DialogException: |
Displays the chooser and waits for a selection or cancellation. |