def directory_chooser(parent = None, title = None):
try:
dialog = wx.DirDialog()
except wx._core.PyNoAppError:
app = mzApp()
app.launch()
dialog = wx.DirDialog()
if dialog.ShowModal() == wx.ID_OK:
return dialog.GetPath()
else:
return None
#if __name__ == "__main__":
#print "TEST MODE"
#foo = open_filearray(None, [('Foo', ["*.xlsx", '*.features']), ('Bar', ['*.features', '*.raw'])])
#print "DONE"
评论列表
文章目录