def METHOD_NAME(self, evt):
    id = evt.GetId()
    if id == ID_BTN_MEASURE_LINEAR:
        self.OnLinkLinearMeasure()
    elif id == ID_BTN_MEASURE_ANGULAR:
        self.OnLinkAngularMeasure()
    else: # elif id == ID_BTN_ANNOTATION:
        self.OnTextAnnotation()