]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxDirDialog.py
Added wxWizard and the wizard page classes, as well as a wizard sample
[wxWidgets.git] / wxPython / demo / wxDirDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
6def runTest(frame, nb, log):
fe953afb
RD
7 dlg = wxDirDialog(frame, "Choose a directory:",
8 style=wxDD_DEFAULT_STYLE|wxDD_NEW_DIR_BUTTON)
cf694132
RD
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
cf694132
RD
19overview = """\
20This class represents the directory chooser dialog.
fe953afb 21"""
cf694132 22
cf694132 23
fe953afb
RD
24if __name__ == '__main__':
25 import sys,os
26 import run
27 run.main(['', os.path.basename(sys.argv[0])])
cf694132 28