wxWidgets/wxPython/samples/wxPIA_book/Chapter-09/dir_box.py
2006-11-01 22:36:23 +00:00

13 lines
274 B
Python

import wx
if __name__ == "__main__":
app = wx.PySimpleApp()
dialog = wx.DirDialog(None, "Choose a directory:",
style=wx.DD_DEFAULT_STYLE | wx.DD_NEW_DIR_BUTTON)
if dialog.ShowModal() == wx.ID_OK:
print dialog.GetPath()
dialog.Destroy()