예제 #1
0
파일: enode.py 프로젝트: feeling1982113/edd
    def mousePressEvent(self, mouseEvent):
        QGraphicsObject.mousePressEvent(self, mouseEvent)

        #if mouseEvent.button() == Qt.RightButton:
        #print self.mapFromPoint(mouseEvent.scenePos())
        self.onPress.emit()
 def mousePressEvent(self, event):
     if self.shapeItem.path().contains(event.pos()):
         return QGraphicsObject.mousePressEvent(self, event)
     else:
         event.ignore()
예제 #3
0
파일: nodeitem.py 프로젝트: CHANAYA/orange3
 def mousePressEvent(self, event):
     if self.shapeItem.path().contains(event.pos()):
         return QGraphicsObject.mousePressEvent(self, event)
     else:
         event.ignore()
예제 #4
0
    def mousePressEvent(self, mouseEvent):
        QGraphicsObject.mousePressEvent(self, mouseEvent)

        #if mouseEvent.button() == Qt.RightButton:
        #print self.mapFromPoint(mouseEvent.scenePos())
        self.onPress.emit()
예제 #5
0
 def mousePressEvent(self, event):
     QGraphicsObject.mousePressEvent(self, event)
     self.onPress.emit()
예제 #6
0
 def mousePressEvent(self, event):
     QGraphicsObject.mousePressEvent(self, event)
     self.onPress.emit()