]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxFileDialog.py
2 from wxPython
.wx
import *
4 #---------------------------------------------------------------------------
6 wildcard
= "Python source (*.py)|*.py|" \
7 "Compiled Python (*.pyc)|*.pyc|" \
10 def runTest(frame
, nb
, log
):
11 dlg
= wxFileDialog(frame
, "Choose a file", "", "", wildcard
, wxOPEN|wxMULTIPLE
)
12 if dlg
.ShowModal() == wxID_OK
:
13 paths
= dlg
.GetPaths()
14 log
.WriteText('You selected %d files:' % len(paths
))
16 log
.WriteText(' %s\n' % path
)
19 #---------------------------------------------------------------------------
35 This class represents the file chooser dialog.