class_docstr: Navigation toolbar for EditObjectsDialog
docstr: Toggle the current mode to off
docstr_tok: ["Toggle","the","current","mode","to","off"]
code: def cancel_mode(self):
      """Toggle the current mode to off"""
      if self.mode == NAV_MODE_ZOOM:
          self.zoom()
  
          if "Zoom" in self.wx_ids:
              self.ToggleTool(self.wx_ids["Zoom"], False)
      elif self.mode == NAV_MODE_PAN:
          self.pan()
  
          if "Pan" in self.wx_ids:
              self.ToggleTool(self.wx_ids["Pan"], False)
      elif self.mode == NAV_MODE_MEASURE:
          if "Measure" in self.wx_ids:
              self.ToggleTool(self.wx_ids["Measure"], False)
  
imports: import matplotlib
  import matplotlib.backend_bases
  import matplotlib.backends.backend_wxagg
  import wx
  import wx.lib.intctrl
  from ..constants.figure import NAV_MODE_ZOOM
  from ..constants.figure import NAV_MODE_MEASURE
  from ..constants.figure import BMP_MEASURE
  from ..constants.figure import NAV_MODE_PAN
  from ..constants.figure import EVT_NAV_MODE_CHANGE
  from ..utilities.figure import get_crosshair_cursor
label_desc: Use image node_id 4 for calling the NavigationToolbar obj's underlying member method code with example usage: obj.cancel_mode() without return types