def __init__(self, shape): """ @param shape Qt.CursorShape """ QApplication.setOverrideCursor(shape)
def press(self, x, y): self.setGeometry(x, y, 0, 0) self.__pressedPos = x, y QApplication.setOverrideCursor(Qt.CrossCursor) self.show()