Hi, i was doing a little game and when using a QGraphicsRectItem with the
mousePressEvent i tried to capture the event where the player clicks both
left and right click, i've tried the following without luck:
def mousePressEvent(self, event):
print event.button() # prints 1
print QtCore.Qt.RightButton # prints 2
print QtCore.Qt.LeftButton # prints 1
print event.buttons().__int__() # always the same as button()
print event.buttons().__int__() & QtCore.Qt.RightButton &
QtCore.Qt.LeftButton # Always false, no wonder seeing the line before :P
Best Regards
Hernan Rajchert
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt