(self)
| 4125 | return self._selection_artist.get_bbox() |
| 4126 | |
| 4127 | def _add_box(self): |
| 4128 | self._box = RectangleSelector(self.ax, |
| 4129 | useblit=self._useblit, |
| 4130 | grab_range=self.grab_range, |
| 4131 | handle_props=self._box_handle_props, |
| 4132 | props=self._box_props, |
| 4133 | interactive=True) |
| 4134 | self._box._state_modifier_keys.pop('rotate') |
| 4135 | self._box.connect_event('motion_notify_event', self._scale_polygon) |
| 4136 | self._update_box() |
| 4137 | # Set state that prevents the RectangleSelector from being created |
| 4138 | # by the user |
| 4139 | self._box._allow_creation = False |
| 4140 | self._box._selection_completed = True |
| 4141 | self._draw_polygon() |
| 4142 | |
| 4143 | def _remove_box(self): |
| 4144 | if self._box is not None: |
no test coverage detected