X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0122b7e3fcfd78f879470053c91a60e3c66537a3..59d04dff037f66e9e73b389de72835211f5f0bcd:/wxPython/demo/wxFileDialog.py diff --git a/wxPython/demo/wxFileDialog.py b/wxPython/demo/wxFileDialog.py index eda3e882d1..a3c753e45b 100644 --- a/wxPython/demo/wxFileDialog.py +++ b/wxPython/demo/wxFileDialog.py @@ -1,10 +1,15 @@ from wxPython.wx import * +import string #--------------------------------------------------------------------------- +wildcard = "Python source (*.py)|*.py|" \ + "Compiled Python (*.pyc)|*.pyc|" \ + "All files (*.*)|*.*" + def runTest(frame, nb, log): - dlg = wxFileDialog(frame, "Choose a file", ".", "", "*.*", wxOPEN|wxMULTIPLE) + dlg = wxFileDialog(frame, "Choose a file", "", "", wildcard, wxOPEN|wxMULTIPLE) if dlg.ShowModal() == wxID_OK: for path in dlg.GetPaths(): log.WriteText('You selected: %s\n' % path)