def displayDataFileSelectionDialog(starting_dir=None):
 fdlg = FileDialog(message='Select a ioHub DataStore File', defaultDir=starting_dir, fileTypes=FileDialog.IODATA_FILES, display_index=0)
 (status, filePathList) = fdlg.show()
 if (status != FileDialog.OK_RESULT):
  print ' Data File Selection Cancelled.'
  return None
 return filePathList[0]

def displayDataFileSelectionDialog ( starting_dir = None ) : fdlg = FileDialog ( message = 'Select a ioHub DataStore File' , defaultDir = starting_dir , fileTypes = FileDialog . IODATA_FILES , display_index = 0 ) ( status , filePathList ) = fdlg . show ( ) if ( status != FileDialog . OK_RESULT ) : print ' Data File Selection Cancelled.' return None return filePathList [ 0 ]
shows a filedialog and lets you select a .