def mousePressEvent(self, event): """ mousePressEvent(e: QMouseEvent) -> None Echo mouse event to SCIRun event system. """ e = sr_py.PointerEvent() e.set_pointer_state(sr_py.PointerEvent.BUTTON_PRESS_E) self.pointer_event(e, event)
def mouseMoveEvent(self, event): """ mouseMoveEvent(e: QMouseEvent) -> None Echo mouse event to SCIRun event system. """ e = sr_py.PointerEvent() #e.set_time(long(event.time)) e.set_pointer_state(sr_py.PointerEvent.MOTION_E) self.pointer_event(e, event)
def mouseReleaseEvent(self, event): """ mouseReleaseEvent(e: QEvent) -> None Echo mouse event to SCIRun event system. """ e = sr_py.PointerEvent() #e.set_time(long(event.time)) e.set_pointer_state(sr_py.PointerEvent.BUTTON_RELEASE_E) self.pointer_event(e, event)