X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ca8071ca9ffe47beab63b5a0070ccd463ed00dd1..25b3661bd4cb44304418b93c0dee1d0dfb99765c:/wxPython/wx/lib/ogl/_composit.py diff --git a/wxPython/wx/lib/ogl/_composit.py b/wxPython/wx/lib/ogl/_composit.py index d6913abc42..812b7539a1 100644 --- a/wxPython/wx/lib/ogl/_composit.py +++ b/wxPython/wx/lib/ogl/_composit.py @@ -133,7 +133,7 @@ class Constraint(object): self._ySpacing = 0.0 self._constraintType = type - self._constraintingObject = constraining + self._constrainingObject = constraining self._constraintId = 0 self._constraintName = "noname" @@ -158,13 +158,13 @@ class Constraint(object): def Evaluate(self): """Evaluate this constraint and return TRUE if anything changed.""" - maxWidth, maxHeight = self._constraintingObject.GetBoundingBoxMax() - minWidth, minHeight = self._constraintingObject.GetBoundingBoxMin() - x = self._constraintingObject.GetX() - y = self._constraintingObject.GetY() + maxWidth, maxHeight = self._constrainingObject.GetBoundingBoxMax() + minWidth, minHeight = self._constrainingObject.GetBoundingBoxMin() + x = self._constrainingObject.GetX() + y = self._constrainingObject.GetY() - dc = wx.ClientDC(self._constraintingObject.GetCanvas()) - self._constraintingObject.GetCanvas().PrepareDC(dc) + dc = wx.ClientDC(self._constrainingObject.GetCanvas()) + self._constrainingObject.GetCanvas().PrepareDC(dc) if self._constraintType == CONSTRAINT_CENTRED_VERTICALLY: n = len(self._constrainedObjects)