Search code examples
pythonwxpythonwxglade

wxGlade - Button to chose directory and file


i build my GUI with wxGlade. I think it is very comfortable but i´m looking for a widget/button which open a frame to chose a directory or file..

Can u help me?


Solution

  • You just need to modify your button's event handler to open one of the following:

    • wx.FileDialog
    • wx.DirDialog
    • wx.lib.agw.multidirdialog

    There are good examples of each of these in the wxPython demo package. See also: