def onDir2(self, event):
"""
Show the DirDialog and print the user's choice to stdout
"""
dlg2 = wx.DirDialog(self, "Choose a directory:",
style=wx.DD_DEFAULT_STYLE
#| wx.DD_DIR_MUST_EXIST
#| wx.DD_CHANGE_DIR
)
if dlg2.ShowModal() == wx.ID_OK:
global dst
dst=dlg2.GetPath()
print 'Destination folder:', dst
dlg2.Destroy()
评论列表
文章目录