From edc88cde26773ad9e954034dff6d0eb8a0acfc8f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Sun, 2 Oct 2005 09:46:12 +0000 Subject: [PATCH] - correct slots - __init__ cannot return the instance. Maybe, we should rewrite this as a factory function git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@2509 069f4177-920e-0410-937b-c2a4a81bcd90 --- pyx/path.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyx/path.py b/pyx/path.py index b6a38b15..73cf422c 100755 --- a/pyx/path.py +++ b/pyx/path.py @@ -943,7 +943,7 @@ class path(canvas.canvasitem): """PS style path""" - __slots__ = "path", "_normpath" + __slots__ = "pathitems", "_normpath" def __init__(self, *pathitems): """construct a path from pathitems *args""" @@ -1243,7 +1243,7 @@ class ellipse_pt(path): def __init__(self, x_pt, y_pt, a_pt, b_pt, angle, **kwargs): t = trafo.scale(a_pt, b_pt, epsilon=None).rotated(angle).translated_pt(x_pt, y_pt) - return path.circle_pt(0, 0, 1, **kwargs).normpath(epsilon=None).transformed(t).path() + self.pathitems = path.circle_pt(0, 0, 1, **kwargs).normpath(epsilon=None).transformed(t).path().pathitems class line(line_pt): -- 2.11.4.GIT