+ if BUFFERED:
+ # Initialize the buffer bitmap. No real DC is needed at this point.
+ self.buffer = wxEmptyBitmap(self.maxWidth, self.maxHeight)
+ dc = wxBufferedDC(None, self.buffer)
+ dc.SetBackground(wxBrush(self.GetBackgroundColour()))
+ dc.Clear()
+ self.DoDrawing(dc)
+
+ EVT_LEFT_DOWN(self, self.OnLeftButtonEvent)
+ EVT_LEFT_UP(self, self.OnLeftButtonEvent)
+ EVT_MOTION(self, self.OnLeftButtonEvent)
+ EVT_PAINT(self, self.OnPaint)
+ ##EVT_MOUSEWHEEL(self, self.OnWheel)
+
+