]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/demo/wxDirDialog.py
wxPython stuff:
[wxWidgets.git] / utils / wxPython / demo / wxDirDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
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())
10 dlg.Destroy()
11
12 #---------------------------------------------------------------------------
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31 overview = """\
32 This class represents the directory chooser dialog.
33
34 wxDirDialog()
35 ------------------------
36
37 wxDirDialog(wxWindow* parent, const wxString& message = "Choose a directory", const wxString& defaultPath = "", long style = 0, const wxPoint& pos = wxDefaultPosition)
38
39 Constructor. Use wxDirDialog::ShowModal to show the dialog.
40
41 Parameters
42 -------------------
43
44 parent = Parent window.
45
46 message = Message to show on the dialog.
47
48 defaultPath = The default path, or the empty string.
49
50 style = A dialog style, currently unused.
51
52 pos = Dialog position.
53 """