]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/doodle/superdoodle.py
wxUniversal fixes:
[wxWidgets.git] / wxPython / samples / doodle / superdoodle.py
index 7bc579d7854d2eb1ac1d2c69f338b870cdc3bb20..b589e72baa9d3a2a897f39cd0e79cf89f81d4386 100644 (file)
@@ -35,7 +35,8 @@ class DoodleFrame(wxFrame):
     """
     title = "Do a doodle"
     def __init__(self, parent):
-        wxFrame.__init__(self, parent, -1, self.title, size=(800,600))
+        wxFrame.__init__(self, parent, -1, self.title, size=(800,600),
+                         style=wxDEFAULT_FRAME_STYLE | wxNO_FULL_REPAINT_ON_RESIZE)
         self.CreateStatusBar()
         self.MakeMenu()
         self.filename = None
@@ -109,7 +110,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 +127,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: