]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxDirDialog.py
added comments to the makefile; added WX_CONFIG var to be able to use a different...
[wxWidgets.git] / wxPython / demo / wxDirDialog.py
... / ...
CommitLineData
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def 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
19overview = """\
20This class represents the directory chooser dialog.
21"""
22
23
24if __name__ == '__main__':
25 import sys,os
26 import run
27 run.main(['', os.path.basename(sys.argv[0])])
28