code: def hl_canvas2table(self, canvas, button, data_x, data_y):
          
          self.treeview.clear_selection()
  
          # Remove existing highlight
          if self.maskhltag:
              try:
                  canvas.delete_object_by_tag(self.maskhltag, redraw=True)
              except Exception:
                  pass
  
          # Nothing to do if no masks are displayed
          try:
              obj = canvas.get_object_by_tag(self.masktag)
          except Exception:
              return
  
          if obj.kind != 'compound':
              return
  
          # Nothing to do if table has no data
          if len(self._maskobjs) == 0:
              return
  
          for i, mobj in enumerate(self._maskobjs):
              mask1 = self._rgbtomask(mobj)
  
              # Highlight mask covering selected cursor position
              if mask1[int(data_y), int(data_x)]:
                  self._highlight_path(self._treepaths[i])
docs: Highlight mask on table when user click on canvas.