]> git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxFileDialog.py
corrected several errors when generating project file with all configs
[wxWidgets.git] / wxPython / demo / wxFileDialog.py
1
2 from wxPython.wx import *
3 import string
4
5 #---------------------------------------------------------------------------
6
7 wildcard = "Python source (*.py)|*.py|" \
8 "Compiled Python (*.pyc)|*.pyc|" \
9 "All files (*.*)|*.*"
10
11 def runTest(frame, nb, log):
12 dlg = wxFileDialog(frame, "Choose a file", "", "", wildcard, wxOPEN|wxMULTIPLE)
13 if dlg.ShowModal() == wxID_OK:
14 for path in dlg.GetPaths():
15 log.WriteText('You selected: %s\n' % path)
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
36 """