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