]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxCalendar.py
Commented out the bitmap-greying code until I have time to debug it
[wxWidgets.git] / wxPython / demo / wxCalendar.py
index 120ac91c7bc721d7be5f07f6362432d05054fb5d..181e79d85f329107b9f4abd478a06493a75331d2 100644 (file)
@@ -229,7 +229,8 @@ class TestPanel(wxPanel):
 
 class CalendFrame(wxFrame):
     def __init__(self, parent, id, title, log):
-        wxFrame.__init__(self, parent, id, title, wxPyDefaultPosition, wxSize(400, 400))
+        wxFrame.__init__(self, parent, id, title, size=wxSize(400, 400),
+                         style=wxDEFAULT_FRAME_STYLE|wxNO_FULL_REPAINT_ON_RESIZE)
         EVT_CLOSE(self, self.OnCloseWindow)
 
         self.log = log
@@ -419,7 +420,7 @@ class PrintCalend:
         pdd.SetPrintData(self.printData)
         printer = wxPrinter(pdd)
         printout = SetPrintout(self)
-        frame = wxFrame(NULL, -1, "Test")
+        frame = wxFrame(None, -1, "Test")
         if not printer.Print(frame, printout):
             wxMessageBox("There was a problem printing.\nPerhaps your current printer is not set correctly?", "Printing", wxOK)
         else:
@@ -594,7 +595,7 @@ class SetPrintout(wxPrintout):
 
 class MyApp(wxApp):
     def OnInit(self):
-        frame = CalendFrame(NULL, -1, "Test Calendar")
+        frame = CalendFrame(None, -1, "Test Calendar")
         frame.Show(true)
         self.SetTopWindow(frame)
         return true