]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxFileDialog.py
Tidied space and tabs in wxMac files
[wxWidgets.git] / wxPython / demo / wxFileDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
eb0f373c 3import string
cf694132
RD
4
5#---------------------------------------------------------------------------
6
eb0f373c
RD
7wildcard = "Python source (*.py)|*.py|" \
8 "Compiled Python (*.pyc)|*.pyc|" \
9 "All files (*.*)|*.*"
10
cf694132 11def 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
33overview = """\
34This class represents the file chooser dialog.
35
cf694132 36"""