]>
Commit | Line | Data |
---|---|---|
cf694132 RD |
1 | |
2 | from wxPython.wx import * | |
eb0f373c | 3 | import string |
cf694132 RD |
4 | |
5 | #--------------------------------------------------------------------------- | |
6 | ||
eb0f373c RD |
7 | wildcard = "Python source (*.py)|*.py|" \ |
8 | "Compiled Python (*.pyc)|*.pyc|" \ | |
9 | "All files (*.*)|*.*" | |
10 | ||
cf694132 | 11 | def runTest(frame, nb, log): |
eb0f373c | 12 | dlg = wxFileDialog(frame, "Choose a file", "", "", wildcard, wxOPEN|wxMULTIPLE) |
cf694132 | 13 | if dlg.ShowModal() == wxID_OK: |
f6bcfd97 BP |
14 | for path in dlg.GetPaths(): |
15 | log.WriteText('You selected: %s\n' % path) | |
cf694132 RD |
16 | dlg.Destroy() |
17 | ||
18 | #--------------------------------------------------------------------------- | |
19 | ||
20 | ||
21 | ||
22 | ||
23 | ||
24 | ||
25 | ||
26 | ||
27 | ||
28 | ||
29 | ||
30 | ||
31 | ||
32 | ||
33 | overview = """\ | |
34 | This class represents the file chooser dialog. | |
35 | ||
cf694132 | 36 | """ |