Beispiel #1
0
def ExportBDFData(sender, args):
    # Create a File open dialog
    dialog = FolderBrowserDialog()
    dialog.Title = "Select directory to save the BDF files"

    # Display the dialog
    # If it returns anything
    #   get the file name
    global projectPath
    if dialog.ShowDialog():
        projectPath = dialog.SelectedPath
        file_path = os.path.dirname(os.path.realpath(__file__))
        dictionary["DirPath"] = projectPath
        script_path = os.path.join(file_path, 'ExportBDF.py')
        apex_sdk.runScriptFunction(file=script_path,
                                   function="ExportBDF",
                                   args=dictionary)
Beispiel #2
0
def pickDirectory(config):
    dialog = FolderBrowserDialog()
    dialog.Title = config['title'] if 'title' in config else 'Pick folder'
    # dialog.InitialDirectory = config['initialDirectory'] if 'initialDirectory' in config else None # TODO FIXME
    pass