On Mar 28, 2009, at 7:20 PM, Ricardo Aráoz wrote:

> Nevertheless when in dShell I do :
> ----------------------------------------
>>>> dabo.ui.dTreeView(w)
>>>> dabo.ui.dNode(tv)
> ----------------------------------------
> <dTreeView1 (baseclass dabo.ui.dTreeView, id:-403)>
> Traceback (most recent call last):
>  File "<input>", line 1, in <module>
> AttributeError: 'module' object has no attribute 'dNode'
> ----------------------------------------

        dNode is not supposed to be instantiated directly. Nodes cannot exist  
outside of the context of a tree, so the only way to create them is to  
call appendNode(); it will return a reference to the node. Take a look  
at dTreeView.treeFromStructure() for a good code example of how to  
deal with nodes.


-- Ed Leafe




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to