self.lines = []
self.maxWidth = 1000
self.maxHeight = 1000
+ self.count = 0
self.SetBackgroundColour(wxNamedColor("WHITE"))
EVT_LEFT_DOWN(self, self.OnLeftButtonEvent)
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):
dc.EndDrawing()
-
def DrawSavedLines(self, dc):
dc.SetPen(wxPen(wxNamedColour('MEDIUM FOREST GREEN'), 4))
for line in self.lines: