chiark / gitweb /
Use the proper button read api.
[cura.git] / Cura / gui / util / openglGui.py
index f4fd3707e3aae322b198ceb56b9377fa93c6e6e4..9a945f027905e5aa2e3566330ba77899db235a85 100644 (file)
@@ -145,7 +145,7 @@ class glGuiPanel(glcanvas.GLCanvas):
 
        def _OnGuiMouseDown(self,e):
                self.SetFocus()
-               if self._container.OnMouseDown(e.GetX(), e.GetY(), e.Button):
+               if self._container.OnMouseDown(e.GetX(), e.GetY(), e.GetButton()):
                        self.Refresh()
                        return
                self.OnMouseDown(e)