Christopher Barker wrote:
>
> Does that help?
>
> -Chris
>
Yes it does, very much. Thanks. I few other questions I have regarding 
methods and syntax in floatcanvas:
1. The line that states self.Canvas.AddObjects(Nodes)  is there a way to 
iterate through these added objects (and possibly manipulate them)? I 
cant find anything in the docs about added objects.
2.  I've had a look at the new Tree.py you have in the repository and 
for me it crashes with the following error:

Traceback (most recent call last):
  File "C:\shome\Tree2.py", line 370, in <module>
    DrawFrame(None, -1, "FloatCanvas Tree Demo App", wx.DefaultPosition, 
(700,700) )
  File "C:\shome\Tree2.py", line 278, in __init__
    self.AddTree(self.elements)
  File "C:\shome\Tree2.py", line 319, in AddTree
    TraverseTree(root, AddConnectors)
  File "C:\shome\Tree2.py", line 248, in TraverseTree
    func(root)
  File "C:\shome\Tree2.py", line 314, in AddConnectors
    Connector = ConnectorLine(node.DrawObject, child.DrawObject, 
LineWidth=3, LineColor="Red")
  File "C:\shome\Tree2.py", line 153, in __init__
    self.CalcBoundingBox()
  File "C:\shome\Tree2.py", line 159, in CalcBoundingBox
    self.BoundingBox = BBox.fromPoints((self.Object1.GetConnectPoint(),
  File "C:\shome\Tree2.py", line 119, in GetConnectPoint
    return self.BoundingBox.Center
AttributeError: 'BBox' object has no attribute 'Center'

Any ideas?
Thanks again for all your help.
Cheers
Astan
_______________________________________________
FloatCanvas mailing list
[email protected]
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas

Reply via email to