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

Displays the chooser and waits for a destination or cancellation.

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

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

Throws
  • DialogException if the backend fails or the destination folder is invalid.
Example
dialog = SaveFileDialog()
if dialog.showDialog(window):
dialog.selectedFile.write("Saved by Klyn")