class_docstr: This is the matplotlib based GUI for a single analysis
  It assumes the analysis is simple image data (this could be abstracted)
class_docstr_tok: ["This","is","the","matplotlib","based","GUI","for","a","single","analysis","It","assumes","the","analysis","is","simple","image","data","(","this","could","be","abstracted",")"]
docstr: Set the currently visible path selection widget
docstr_tok: ["Set","the","currently","visible","path","selection","widget"]
code: def set_selector(self, enable=None):
      """Set the currently visible path selection widget"""
      self.active_selector = None
      for key, selector in self.selectors.items():
          # Need to also set the visibility for the polygon selector
          if key == enable:
              selector.set_active(True)
              selector.set_visible(True)
              self.active_selector = selector
          else:
              selector.set_active(False)
              selector.set_visible(False)
  
imports: import io
  from enum import Enum
  import numpy
  import matplotlib.pyplot
  import matplotlib.style
  from matplotlib.widgets import RectangleSelector, LassoSelector, EllipseSelector, PolygonSelector
  from matplotlib.path import Path
  from matplotlib.backends.backend_qt5agg import FigureCanvas
  from matplotlib.figure import Figure
  from PyQt5 import QtWidgets, QtCore
  from cursors import DrawingCursors, DrawingShape, DrawingMode
label_desc: Use image node_id 14 for calling the EmbeddingGui obj's underlying member method code with example usage: obj.set_selector(enable) without return types