def METHOD_NAME(self, *args):
    self.mode = NAV_MODE_MEASURE
    if "Pan" in self.wx_ids:
        self.ToggleTool(self.wx_ids['Pan'], False)
    if "Zoom" in self.wx_ids:
        self.ToggleTool(self.wx_ids['Zoom'], False)
    self.__send_mode_change_event()
    if self._active == 'MEASURE':
        self._active = None
    else:
        self._active = 'MEASURE'
    if self._idPress is not None:
        self._idPress = self.canvas.mpl_disconnect(self._idPress)
        self.mode = ''
    if self._idRelease is not None:
        self._idRelease = self.canvas.mpl_disconnect(self._idRelease)
        self.mode = ''
    if self._active:
        self.canvas.widgetlock(self)
    else:
        self.canvas.widgetlock.release(self)
    for a in self.canvas.figure.get_axes():
        a.set_navigate_mode(self._active)
    self.set_message(self.mode)