On Thu, 23 May 2013 09:42:38 -0500
"Edward K. Ream" <[email protected]> wrote:
> Unfortunately, the higher-level methods that insert and move nodes are
> *position* methods. These do the tricky work of calling the low-level
> *vnode* methods. There aren't any higher-level vnode methods that
> insert/delete/clone/move vnodes. Perhaps there should be.
Since you brought vnodes into the topic :-)
Building large data visualization (i.e. throw away) trees is slow with
positions, but fast with vnodes. I use this monkey patch:
from leo.core.leoNodes import vnode
if not hasattr(vnode, 'insertAsLastChild'):
def ialc(self):
vnode(self.context)._linkAsNthChild(self, len(self.children))
return self.children[-1]
vnode.insertAsLastChild = ialc
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.