]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxDirDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 def runTest(frame
, nb
, log
):
7 dlg
= wxDirDialog(frame
)
8 if dlg
.ShowModal() == wxID_OK
:
9 log
.WriteText('You selected: %s\n' % dlg
.GetPath())
12 #---------------------------------------------------------------------------
32 This class represents the directory chooser dialog.
35 ------------------------
37 wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = 0, const wxPoint& pos = wxDefaultPosition)
39 Constructor. Use wxDirDialog::ShowModal to show the dialog.
44 parent = Parent window.
46 message = Message to show on the dialog.
48 defaultPath = The default path, or the empty string.
50 style = A dialog style, currently unused.
52 pos = Dialog position.