On Fri, 14 Oct 2011 12:56:23 -0500 "Edward K. Ream" <[email protected]> wrote:
> 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. But wouldn't the p approach be preferred? Whenever something starts with '_' it feels like there's a risk of getting your fingers mangled in moving parts... particularly seeing my approach needed `from leo.core.leoNodes import vnode`, I think. Perhaps there are some rough edges on the API there. It would be helpful if there was a fake position available, `r`, such the r.v == c.hiddenRootNode, or something functionally equivalent to that. Cheers -Terry -- 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.
