X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c12bc4de5887421242de7f619b3c5e265bf631ac..761df41e86ceeed56d32c038a6c9f88554d4f47a:/wxPython/samples/doodle/superdoodle.py?ds=sidebyside diff --git a/wxPython/samples/doodle/superdoodle.py b/wxPython/samples/doodle/superdoodle.py index 7bc579d785..68584ed27e 100644 --- a/wxPython/samples/doodle/superdoodle.py +++ b/wxPython/samples/doodle/superdoodle.py @@ -109,7 +109,7 @@ class DoodleFrame(wxFrame): wildcard = "Doodle files (*.ddl)|*.ddl|All files (*.*)|*.*" def OnMenuOpen(self, event): - dlg = wxFileDialog(self, "Open doodle file...", + dlg = wxFileDialog(self, "Open doodle file...", os.getcwd(), style=wxOPEN, wildcard = self.wildcard) if dlg.ShowModal() == wxID_OK: self.filename = dlg.GetPath() @@ -126,7 +126,7 @@ class DoodleFrame(wxFrame): def OnMenuSaveAs(self, event): - dlg = wxFileDialog(self, "Save doodle as...", + dlg = wxFileDialog(self, "Save doodle as...", os.getcwd(), style=wxSAVE | wxOVERWRITE_PROMPT, wildcard = self.wildcard) if dlg.ShowModal() == wxID_OK: