]> git.saurik.com Git - wxWidgets.git/blame - wxPython/demo/wxFileDialog.py
support Show() in wxFlexGridSizer (patch 737850)
[wxWidgets.git] / wxPython / demo / wxFileDialog.py
CommitLineData
cf694132
RD
1
2from wxPython.wx import *
3
4#---------------------------------------------------------------------------
5
eb0f373c
RD
6wildcard = "Python source (*.py)|*.py|" \
7 "Compiled Python (*.pyc)|*.pyc|" \
8 "All files (*.*)|*.*"
9
cf694132 10def runTest(frame, nb, log):
eb0f373c 11 dlg = wxFileDialog(frame, "Choose a file", "", "", wildcard, wxOPEN|wxMULTIPLE)
cf694132 12 if dlg.ShowModal() == wxID_OK:
1e4a197e
RD
13 paths = dlg.GetPaths()
14 log.WriteText('You selected %d files:' % len(paths))
15 for path in paths:
16 log.WriteText(' %s\n' % path)
cf694132
RD
17 dlg.Destroy()
18
19#---------------------------------------------------------------------------
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34overview = """\
35This class represents the file chooser dialog.
36
cf694132 37"""