On Fri, Oct 14, 2011 at 12:22 PM, Terry Brown <[email protected]> wrote:

> Edward - if the node "@script load tabs" doesn't exist in the outline,
> I want to create it, at the *bottom*, and I'm sure there's a cleaner
> way than I'm using here.

v._linkAsNthChild(c.hiddenRootNode,
     len(c.hiddenRootNode.children))

This seems like the simplest code possible.

> my attempts to iterate to the end of
> c.rootPosition()'s siblings failed, probably just oversight on my part.

This works::

p = c.rootPosition()
while p.hasNext():
    p.moveToNext()
p = p.insertAfter()
p.h = 'success'
c.redraw()

But your vnode way still seems simplest.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to