class_docstr: A controller for the BinaryMatrix setting
      
class_docstr_tok: ["A","controller","for","the","BinaryMatrix","setting"]
code: def on_matrix_ctrl_clicked(self, event):
      assert isinstance(event, wx.MouseEvent)
      i, j = self.hit_test(event.GetX(), event.GetY())
      if i is not None:
          matrix = self.setting.get_matrix()
          matrix[i][j] = not matrix[i][j]
          value = BinaryMatrix.to_value(matrix)
          self.module_view.on_value_change(
              self.setting, self.panel, value, event
          )
  
file_path: CellProfiler/src/frontend/cellprofiler/gui/module_view/_binary_matrix_controller.py
imports: import wx
  from cellprofiler_core.preferences import get_background_color
  from cellprofiler_core.setting import BinaryMatrix
  from ._module_view import ModuleView
  from ..utilities.module_view import edit_control_name
label_desc: Use image node_id 3 for calling the BinaryMatrixController obj's underlying member method code with example usage: obj.on_matrix_ctrl_clicked(event) without return types