]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxDirDialog.py
Ehm... fixed my comment about DJGPP to say what I wanted it to say
[wxWidgets.git] / wxPython / demo / wxDirDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
7 dlg = wxDirDialog(frame)
8 if dlg.ShowModal() == wxID_OK:
9 log.WriteText('You selected: %s\n' % dlg.GetPath())
10 dlg.Destroy()
11
12#---------------------------------------------------------------------------
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31overview = """\
32This class represents the directory chooser dialog.
33
34wxDirDialog()
35------------------------
36
37wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = 0, const wxPoint& pos = wxDefaultPosition)
38
39Constructor. Use wxDirDialog::ShowModal to show the dialog.
40
41Parameters
42-------------------
43
44parent = Parent window.
45
46message = Message to show on the dialog.
47
48defaultPath = The default path, or the empty string.
49
50style = A dialog style, currently unused.
51
52pos = Dialog position.
53"""