code: def __init__(self, annotation_item, idx, color):
      super(LineItem, self).__init__()
      self.polygon_item = annotation_item
      self.idx = idx
      self.color = color
      self.anning = True
      self.setPen(QtGui.QPen(color, self.width))
  
      self.setZValue(11)
      self.setFlag(QtWidgets.QGraphicsItem.ItemIsSelectable, True)
      self.setFlag(QtWidgets.QGraphicsItem.ItemIsFocusable, True)
      # self.setFlag(QtWidgets.QGraphicsItem.ItemClipsToShape, True)
      self.setAcceptHoverEvents(True)
      self.setBoundingRegionGranularity(0.5)
      self.updateWidth()
  
file_path: PaddleSeg/EISeg/eiseg/widget/line.py
imports: from qtpy import QtWidgets, QtGui, QtCore
label_desc: Use image node_id 1 to create a new LineItem object from inherited base classes: QtWidgets with example: obj = LineItem(annotation_item, idx, color)