                                               group="Brush",
                                               choices="colorchooser",
                                               default="#ffffff",
                                               helptext=_("Select the brush cursor color.")))
  
      def _set_tk_mask_change_callback(self):
          """ Add a trace to change the displayed mask on a mask type change. """
          var = self._control_vars["display"]["MaskType"]
          var.trace("w", lambda *e: self._on_mask_type_change())
          return var.get()
 
</s> remove             self._canvas.create_oval(0, 0, 0, 0, outline="black", state="hidden"), False]
 </s> add             self._get_cursor_shape(), False]
        self._add_control(ControlPanelOption("Cursor Shape",
                                             str,
                                             group="Display",
                                             choices=["Circle", "Rectangle"],
                                             default="Circle",
                                             is_radio=True,
                                             helptext=_("Select a shape for masking cursor.")))
                                               group="Brush",
                                               choices="colorchooser",
                                               default="#ffffff",
                                               helptext=_("Select the brush cursor color.")))
        self._add_control(ControlPanelOption("Cursor Shape",
                                             str,
                                             group="Display",
                                             choices=["Circle", "Rectangle"],
                                             default="Circle",
                                             is_radio=True,
                                             helptext=_("Select a shape for masking cursor.")))
      def _set_tk_mask_change_callback(self):
          """ Add a trace to change the displayed mask on a mask type change. """
          var = self._control_vars["display"]["MaskType"]
          var.trace("w", lambda *e: self._on_mask_type_change())
          return var.get()
keep keep keep keep replace keep keep keep keep keep
 feat: add support for rectangle cursor shape for masking (#1189)

* feat: add support for rectangle cursor shape for masking
* formatting update
* fix bug with initial rectangular point

Co-authored-by: markus <markus@helmes.com> 
tools/manual/frameviewer/editor/mask.py