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

Displays the chooser and waits for a selection or cancellation.

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

true after a valid selection; false only when cancelled.

Throws
  • DialogException if the backend fails or a selected file becomes unavailable before validation completes.
Example
dialog = OpenFileDialog()
if dialog.showDialog(window):
print(dialog.selectedFiles[0].read())