diff --git a/examples/dokk/glwin.py b/examples/dokk/glwin.py index 70a2fa69b30aa8215c0f47eb3e453e718ec3fa0b..deb3378e9545dfb9362a03fa4406d9842afbd2ed 100644 --- a/examples/dokk/glwin.py +++ b/examples/dokk/glwin.py @@ -60,7 +60,7 @@ class DokkGLCanvas(QGLWidget): self.level_.RotateAxis(tf.GetRot().GetRow(1), delta.x()*0.005) self.level_.UpdateScores() self.update() - elif event.button() & Qt.RightButton: + elif event.buttons() & Qt.RightButton: if delta.y()!=0: gfx.Scene().Apply(gfx.InputEvent(gfx.INPUT_DEVICE_MOUSE, gfx.INPUT_COMMAND_ROTX, delta.y()*0.5),