class_docstr: Class responsible for drawing a single item in a LegendItem (sans label)
      
class_docstr_tok: ["Class","responsible","for","drawing","a","single","item","in","a","LegendItem","(","sans","label",")"]
docstr: Use the mouseClick event to toggle the visibility of the plotItem
          
docstr_tok: ["Use","the","mouseClick","event","to","toggle","the","visibility","of","the","plotItem"]
code: def mouseClickEvent(self, event):
      """Use the mouseClick event to toggle the visibility of the plotItem"""
      if event.button() == QtCore.Qt.MouseButton.LeftButton:
          visible = self.item.isVisible()
          self.item.setVisible(not visible)
  
      event.accept()
      self.update()
  
imports: import math
  from ..None import functions
  from ..icons import invisibleEye
  from ..Point import Point
  from ..Qt import QtCore, QtGui, QtWidgets
  from .BarGraphItem import BarGraphItem
  from .GraphicsWidget import GraphicsWidget
  from .GraphicsWidgetAnchor import GraphicsWidgetAnchor
  from .LabelItem import LabelItem
  from .PlotDataItem import PlotDataItem
  from .ScatterPlotItem import ScatterPlotItem, drawSymbol
label_desc: Use image node_id 4 for calling the ItemSample obj's underlying member method code with example usage: obj.mouseClickEvent(event) without return types