Typo fixed
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34539 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -133,7 +133,7 @@ class Constraint(object):
|
|||||||
self._ySpacing = 0.0
|
self._ySpacing = 0.0
|
||||||
|
|
||||||
self._constraintType = type
|
self._constraintType = type
|
||||||
self._constraintingObject = constraining
|
self._constrainingObject = constraining
|
||||||
|
|
||||||
self._constraintId = 0
|
self._constraintId = 0
|
||||||
self._constraintName = "noname"
|
self._constraintName = "noname"
|
||||||
@@ -158,13 +158,13 @@ class Constraint(object):
|
|||||||
|
|
||||||
def Evaluate(self):
|
def Evaluate(self):
|
||||||
"""Evaluate this constraint and return TRUE if anything changed."""
|
"""Evaluate this constraint and return TRUE if anything changed."""
|
||||||
maxWidth, maxHeight = self._constraintingObject.GetBoundingBoxMax()
|
maxWidth, maxHeight = self._constrainingObject.GetBoundingBoxMax()
|
||||||
minWidth, minHeight = self._constraintingObject.GetBoundingBoxMin()
|
minWidth, minHeight = self._constrainingObject.GetBoundingBoxMin()
|
||||||
x = self._constraintingObject.GetX()
|
x = self._constrainingObject.GetX()
|
||||||
y = self._constraintingObject.GetY()
|
y = self._constrainingObject.GetY()
|
||||||
|
|
||||||
dc = wx.ClientDC(self._constraintingObject.GetCanvas())
|
dc = wx.ClientDC(self._constrainingObject.GetCanvas())
|
||||||
self._constraintingObject.GetCanvas().PrepareDC(dc)
|
self._constrainingObject.GetCanvas().PrepareDC(dc)
|
||||||
|
|
||||||
if self._constraintType == CONSTRAINT_CENTRED_VERTICALLY:
|
if self._constraintType == CONSTRAINT_CENTRED_VERTICALLY:
|
||||||
n = len(self._constrainedObjects)
|
n = len(self._constrainedObjects)
|
||||||
|
Reference in New Issue
Block a user