]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/doodle/superdoodle.py
compilation fix for recent commit
[wxWidgets.git] / wxPython / samples / doodle / superdoodle.py
index 7bc579d7854d2eb1ac1d2c69f338b870cdc3bb20..68584ed27e0ed8a674ee6400d9d0843985faff3a 100644 (file)
@@ -109,7 +109,7 @@ class DoodleFrame(wxFrame):
     wildcard = "Doodle files (*.ddl)|*.ddl|All files (*.*)|*.*"
 
     def OnMenuOpen(self, event):
     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()
                            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):
 
 
     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:
                            style=wxSAVE | wxOVERWRITE_PROMPT,
                            wildcard = self.wildcard)
         if dlg.ShowModal() == wxID_OK: