Name | selectOutput() |
---|---|
Examples |
def setup(): selectOutput("Select a file to write to:", "fileSelected") def fileSelected(selection): if selection == None: print("Window was closed or the user hit cancel.") else: print("User selected " + selection.getAbsolutePath()) |
Description | Opens a platform-specific file chooser dialog to select a file for output. After the selection is made, the selected File will be passed to the 'callback' function. If the dialog is closed or canceled, None will be sent to the function, so that the program is not waiting for additional input. The callback is necessary because of how threading works. |
Updated on Mon Sep 21 15:53:25 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License