class_docstr: Returns a slice from a 1-D array. Connect the 'widget' output to a plot to display a region-selection widget.
class_docstr_tok: ["Returns","a","slice","from","a","1-D","array",".","Connect","the","'widget","'","output","to","a","plot","to","display","a","region-selection","widget","."]
code: def __init__(self, name):
      self.items = {}
      CtrlNode.__init__(
          self,
          name,
          terminals={
              "data": {"io": "in"},
              "selected": {"io": "out"},
              "region": {"io": "out"},
              "widget": {"io": "out", "multi": True},
          },
      )
      self.ctrls["display"].toggled.connect(self.displayToggled)
      self.ctrls["movable"].toggled.connect(self.movableToggled)
  
imports: import numpy
  from ...graphicsItems.LinearRegionItem import LinearRegionItem
  from ...Qt import QtCore, QtWidgets
  from ...widgets.TreeWidget import TreeWidget
  from ..Node import Node
  from .None import functions
  from .common import CtrlNode
label_desc: Use image node_id 1 to create a new RegionSelectNode object from inherited base classes: CtrlNode with example: obj = RegionSelectNode(name)