]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
3 | ||
4 | #--------------------------------------------------------------------------- | |
5 | ||
6 | def 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 |
19 | overview = """\ |
20 | This class represents the directory chooser dialog. | |
fe953afb | 21 | """ |
cf694132 | 22 | |
cf694132 | 23 | |
fe953afb RD |
24 | if __name__ == '__main__': |
25 | import sys,os | |
26 | import run | |
27 | run.main(['', os.path.basename(sys.argv[0])]) | |
cf694132 | 28 |