1999-04-29 23:29:54 -04:00
|
|
|
|
|
|
|
from wxPython.wx import *
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
2002-08-13 19:59:08 -04:00
|
|
|
wildcard = "Python source (*.py)|*.py|" \
|
|
|
|
"Compiled Python (*.pyc)|*.pyc|" \
|
|
|
|
"All files (*.*)|*.*"
|
|
|
|
|
1999-04-29 23:29:54 -04:00
|
|
|
def runTest(frame, nb, log):
|
2002-08-13 19:59:08 -04:00
|
|
|
dlg = wxFileDialog(frame, "Choose a file", "", "", wildcard, wxOPEN|wxMULTIPLE)
|
1999-04-29 23:29:54 -04:00
|
|
|
if dlg.ShowModal() == wxID_OK:
|
2003-03-25 01:35:27 -05:00
|
|
|
paths = dlg.GetPaths()
|
|
|
|
log.WriteText('You selected %d files:' % len(paths))
|
|
|
|
for path in paths:
|
|
|
|
log.WriteText(' %s\n' % path)
|
1999-04-29 23:29:54 -04:00
|
|
|
dlg.Destroy()
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
overview = """\
|
|
|
|
This class represents the file chooser dialog.
|
|
|
|
|
|
|
|
"""
|