EVT_LEFT_DOWN(self, self.OnLeftDown)
EVT_LEFT_UP(self, self.OnLeftUp)
EVT_MOTION(self, self.OnMotion)
+ EVT_LEAVE_WINDOW(self, self.OnLeaveWindow)
+ def OnLeaveWindow(self, evt):
+ pass
+
def TileBackground(self, dc):
# tile the background bitmap
#----------------------------------------------------------------------
def runTest(frame, nb, log):
- win = DragCanvas(nb, -1)
+ win = wxPanel(nb, -1)
+ canvas = DragCanvas(win, -1)
+ def onSize(evt, panel=win, canvas=canvas): canvas.SetSize(panel.GetSize())
+ EVT_SIZE(win, onSize)
return win
#----------------------------------------------------------------------