Update the canvas cursor if it's over a handle.
(self, event)
| 2964 | |
| 2965 | @_call_with_reparented_event |
| 2966 | def _hover(self, event): |
| 2967 | """Update the canvas cursor if it's over a handle.""" |
| 2968 | if self.ignore(event): |
| 2969 | return |
| 2970 | |
| 2971 | if self._active_handle is not None or not self._selection_completed: |
| 2972 | # Do nothing if button is pressed and a handle is active, which may |
| 2973 | # occur with drag_from_anywhere=True. |
| 2974 | # Do nothing if selection is not completed, which occurs when |
| 2975 | # a selector has been cleared |
| 2976 | return |
| 2977 | |
| 2978 | _, e_dist = self._edge_handles.closest(event.x, event.y) |
| 2979 | self._set_span_cursor(enabled=e_dist <= self.grab_range) |
| 2980 | |
| 2981 | def _onmove(self, event): |
| 2982 | """Motion notify event handler.""" |
nothing calls this directly
no test coverage detected