]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxFileHistory.py
suppress an assert when a combobox receives WM_KILLFOCUS while it is being destroyed
[wxWidgets.git] / wxPython / demo / wxFileHistory.py
index 7cf5ca35d2b70d86ec407f32da17855edef0fc7c..8847e2f6792a628b44b45b332b35875314993826 100644 (file)
@@ -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.
 
 </body></html>
 """
+
+if __name__ == '__main__':
+    import sys,os
+    import run
+    run.main(['', os.path.basename(sys.argv[0])])
+