From 81bcefb6bc06a65f79653eb978466d1e0c4d913d Mon Sep 17 00:00:00 2001 From: tobias <tobias@5a81b35b-ba03-0410-adc8-b2c5c5119f08> Date: Fri, 12 Mar 2010 15:12:07 +0000 Subject: [PATCH] more mouse input fixes git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@1825 5a81b35b-ba03-0410-adc8-b2c5c5119f08 --- examples/dokk/glwin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/dokk/glwin.py b/examples/dokk/glwin.py index 70a2fa69b..deb3378e9 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), -- GitLab