]>
git.saurik.com Git - wxWidgets.git/blob - wxPython/demo/wxFileDialog.py
2 from wxPython
.wx
import *
5 #---------------------------------------------------------------------------
7 wildcard
= "Python source (*.py)|*.py|" \
8 "Compiled Python (*.pyc)|*.pyc|" \
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
)
18 #---------------------------------------------------------------------------
34 This class represents the file chooser dialog.