class_docstr: Two dimensional raster of callbacks for mouse events.
docstr: Set mouse handler for a region.
docstr_tok: ["Set","mouse","handler","for","a","region","."]
code: def set_mouse_handler_for_range(
      self,
      x_min: int,
      x_max: int,
      y_min: int,
      y_max: int,
      handler: Callable[[MouseEvent], NotImplementedOrNone],
  ) -> None:
      """
      Set mouse handler for a region.
      """
      for y in range(y_min, y_max):
          row = self.mouse_handlers[y]
  
          for x in range(x_min, x_max):
              row[x] = handler
  
imports: from __future__ import annotations
  from collections import defaultdict
  from typing import TYPE_CHECKING, Callable
  from prompt_toolkit.mouse_events import MouseEvent
label_desc: Use image node_id 2 for calling the MouseHandlers obj's underlying member method code with example usage: obj.set_mouse_handler_for_range(x_min, x_max, y_min, y_max, handler) without return types