'Generic canvas event handler'

def canvasHandle(self, eventName, event):

    if (self.active is None):
        return
    toolName = self.active
    handler = getattr(self, (eventName + toolName), None)
    if (handler is not None):
        handler(event)
