]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxDirDialog.py
compilation error fix (trailing comma in an enum)
[wxWidgets.git] / wxPython / demo / wxDirDialog.py
1
2 from wxPython.wx import *
3
4 #---------------------------------------------------------------------------
5
6 def runTest(frame, nb, log):
7 dlg = wxDirDialog(frame, "Choose a directory:",
8 style=wxDD_DEFAULT_STYLE|wxDD_NEW_DIR_BUTTON)
9 if dlg.ShowModal() == wxID_OK:
10 log.WriteText('You selected: %s\n' % dlg.GetPath())
11 dlg.Destroy()
12
13 #---------------------------------------------------------------------------
14
15
16
17
18
19 overview = """\
20 This class represents the directory chooser dialog.
21 """
22
23
24 if __name__ == '__main__':
25 import sys,os
26 import run
27 run.main(['', os.path.basename(sys.argv[0])])
28