]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/demo/wxFileDialog.py
fix Union(empty rect) bug
[wxWidgets.git] / wxPython / demo / wxFileDialog.py
... / ...
CommitLineData
1
2from wxPython.wx import *
3import string
4
5#---------------------------------------------------------------------------
6
7wildcard = "Python source (*.py)|*.py|" \
8 "Compiled Python (*.pyc)|*.pyc|" \
9 "All files (*.*)|*.*"
10
11def 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
33overview = """\
34This class represents the file chooser dialog.
35
36"""