on button press event
(self, event)
| 1793 | return _SelectorWidget.ignore(self, event) or not self.visible |
| 1794 | |
| 1795 | def _press(self, event): |
| 1796 | """on button press event""" |
| 1797 | self.rect.set_visible(self.visible) |
| 1798 | if self.span_stays: |
| 1799 | self.stay_rect.set_visible(False) |
| 1800 | # really force a draw so that the stay rect is not in |
| 1801 | # the blit background |
| 1802 | if self.useblit: |
| 1803 | self.canvas.draw() |
| 1804 | xdata, ydata = self._get_data(event) |
| 1805 | if self.direction == 'horizontal': |
| 1806 | self.pressv = xdata |
| 1807 | else: |
| 1808 | self.pressv = ydata |
| 1809 | |
| 1810 | self._set_span_xy(event) |
| 1811 | return False |
| 1812 | |
| 1813 | def _release(self, event): |
| 1814 | """on button release event""" |
nothing calls this directly
no test coverage detected