Choose a directory from DirDialog : DirDialog : WxPython PYTHON TUTORIALS


PYTHON TUTORIALS » WxPython » DirDialog »

 

Choose a directory from DirDialog


Choose a directory from DirDialog
import wx


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()



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo WxPython
» DirDialog