X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f2a10cdc48bd349914b382352c18d8cfcd69f3b8..59d04dff037f66e9e73b389de72835211f5f0bcd:/wxPython/demo/wxFileHistory.py?ds=sidebyside diff --git a/wxPython/demo/wxFileHistory.py b/wxPython/demo/wxFileHistory.py index 7cf5ca35d2..8847e2f679 100644 --- a/wxPython/demo/wxFileHistory.py +++ b/wxPython/demo/wxFileHistory.py @@ -74,6 +74,7 @@ class TestPanel(wxPanel): def OnFileOpenDialog(self, evt): dlg = wxFileDialog(self, defaultDir = os.getcwd(), + wildcard = "All Files|*", style = wxOPEN | wxCHANGE_DIR) if dlg.ShowModal() == wxID_OK: path = dlg.GetPath() @@ -115,3 +116,9 @@ list appended to a menu, such as the File menu. """ + +if __name__ == '__main__': + import sys,os + import run + run.main(['', os.path.basename(sys.argv[0])]) +