Hi,

Perhaps I am missing something, but is the connector package only
intended for text boxes?

from the misc/connect.py

...
B = text.text(1, 0, r"\bf B", textattrs)
C = text.text(1, 1, r"\bf C", textattrs)
# D = text.text(0, 1, r"\bf D", textattrs)
D = path.circle(0, 1, 2)
...

Traceback (most recent call last):
  File "D:\pyx\examples\misc\connect.py", line 26, in ?
    c.stroke(arc(X, Y, boxdists=[0.2, 0.2]), [color.rgb.red,
deco.earrow.normal])
  File "C:\Python24\lib\site-packages\pyx\connector.py", line 371, in __init__
    boxdists=map(unit.topt, boxdists))
  File "C:\Python24\lib\site-packages\pyx\connector.py", line 117, in __init__
    tangent = (self.box2.center[0] - self.box1.center[0],
AttributeError: circle instance has no attribute 'center'

What would I need to do to get the connector stuff working with closed paths?

Cheers,
Brett


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
PyX-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyx-user

Reply via email to