]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxScrolledWindow.py
Some updates to go with changes in current CVS.
[wxWidgets.git] / wxPython / demo / wxScrolledWindow.py
index 15806b1319d11230e9e87de36223fce278198fd9..67f38113c301a5276530640a8d46dc6a303739f4 100644 (file)
@@ -12,6 +12,7 @@ class MyCanvas(wxScrolledWindow):
         self.lines = []
         self.maxWidth  = 1000
         self.maxHeight = 1000
+        self.count = 0
 
         self.SetBackgroundColour(wxNamedColor("WHITE"))
         EVT_LEFT_DOWN(self, self.OnLeftButtonEvent)
@@ -36,9 +37,12 @@ class MyCanvas(wxScrolledWindow):
 
 
     def OnPaint(self, event):
+        #self.count += 1
+        #print self.count, "begin paint...",
         dc = wxPaintDC(self)
         self.PrepareDC(dc)
         self.DoDrawing(dc)
+        #print "end paint"
 
 
     def DoDrawing(self, dc):
@@ -108,7 +112,6 @@ class MyCanvas(wxScrolledWindow):
         dc.EndDrawing()
 
 
-
     def DrawSavedLines(self, dc):
         dc.SetPen(wxPen(wxNamedColour('MEDIUM FOREST GREEN'), 4))
         for line in self.lines: