              self._drag_data["color"] = np.array(tuple(int(self._control_color[1:][i:i + 2], 16)
                                                        for i in (0, 2, 4)))
              self._drag_data["opacity"] = self._opacity
              self._drag_callback = self._paint
  
      def _paint(self, event):
          """ Paint or erase from Mask and update cursor on click and drag.
  
 
</s> remove             self._canvas.create_oval(0, 0, 0, 0, outline="black", state="hidden"), False]
 </s> add             self._get_cursor_shape(), False] </s> remove 
 </s> add         self._add_control(ControlPanelOption("Cursor Shape",
                                             str,
                                             group="Display",
                                             choices=["Circle", "Rectangle"],
                                             default="Circle",
                                             is_radio=True,
                                             helptext=_("Select a shape for masking cursor.")))
            self._get_cursor_shape_mark(
                self._meta["mask"][face_idx],
                np.array(((event.x, event.y), )),
                face_idx)
              self._drag_data["color"] = np.array(tuple(int(self._control_color[1:][i:i + 2], 16)
                                                        for i in (0, 2, 4)))
              self._drag_data["opacity"] = self._opacity
            self._get_cursor_shape_mark(
                self._meta["mask"][face_idx],
                np.array(((event.x, event.y), )),
                face_idx)
              self._drag_callback = self._paint
  
      def _paint(self, event):
          """ Paint or erase from Mask and update cursor on click and drag.
  
keep keep add 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