Fixed wrong append() name
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29054 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1082,18 +1082,18 @@ class LineShape(Shape):
|
|||||||
control = LineControlPoint(self._canvas, self, CONTROL_POINT_SIZE, first[0], first[1], CONTROL_POINT_ENDPOINT_FROM)
|
control = LineControlPoint(self._canvas, self, CONTROL_POINT_SIZE, first[0], first[1], CONTROL_POINT_ENDPOINT_FROM)
|
||||||
control._point = first
|
control._point = first
|
||||||
self._canvas.AddShape(control)
|
self._canvas.AddShape(control)
|
||||||
self._controlPoints.Append(control)
|
self._controlPoints.append(control)
|
||||||
|
|
||||||
for point in self._lineControlPoints[1:-1]:
|
for point in self._lineControlPoints[1:-1]:
|
||||||
control = LineControlPoint(self._canvas, self, CONTROL_POINT_SIZE, point[0], point[1], CONTROL_POINT_LINE)
|
control = LineControlPoint(self._canvas, self, CONTROL_POINT_SIZE, point[0], point[1], CONTROL_POINT_LINE)
|
||||||
control._point = point
|
control._point = point
|
||||||
self._canvas.AddShape(control)
|
self._canvas.AddShape(control)
|
||||||
self._controlPoints.Append(control)
|
self._controlPoints.append(control)
|
||||||
|
|
||||||
control = LineControlPoint(self._canvas, self, CONTROL_POINT_SIZE, last[0], last[1], CONTROL_POINT_ENDPOINT_TO)
|
control = LineControlPoint(self._canvas, self, CONTROL_POINT_SIZE, last[0], last[1], CONTROL_POINT_ENDPOINT_TO)
|
||||||
control._point = last
|
control._point = last
|
||||||
self._canvas.AddShape(control)
|
self._canvas.AddShape(control)
|
||||||
self._controlPoints.Append(control)
|
self._controlPoints.append(control)
|
||||||
|
|
||||||
def ResetControlPoints(self):
|
def ResetControlPoints(self):
|
||||||
if self._canvas and self._lineControlPoints:
|
if self._canvas and self._lineControlPoints:
|
||||||
|
Reference in New Issue
Block a user