Name

selectFolder()

Examples
def setup():
    selectFolder("Select a folder to process:", "folderSelected")

def folderSelected(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 folder. After the selection is made, the selection 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 Sun Nov 26 15:34:43 2017.
Creative Commons License