class_docstr: Navigation toolbar for EditObjectsDialog
docstr: Set the cursor based on the mode
docstr_tok: ["Set","the","cursor","based","on","the","mode"]
code: def set_cursor(self, cursor):
      """Set the cursor based on the mode"""
      if cursor == matplotlib.backend_bases.cursors.SELECT_REGION:
          self.canvas.SetCursor(get_crosshair_cursor())
      else:
          matplotlib.backends.backend_wxagg.NavigationToolbar2WxAgg.set_cursor(
              self, cursor
          )
  
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 3 for calling the NavigationToolbar obj's underlying member method code with example usage: obj.set_cursor(cursor) without return types