On Tue, 3 Aug 2010 14:03:08 -0500 "Edward K. Ream" <[email protected]> wrote:
> > "Edward K. Ream" <[email protected]> wrote: > > > >> Imo, the present code is easy enough to use. > > > > But not for the 'context menu delete multiple selected nodes' (CMDMSN) > > case, where the selected nodes may not be contiguous. > > > Why not step through the entire outline? p = c.rootPosition() ; > afterLastNode = None. This should work for any set of nodes in the > outline. Um, because I didn't spend enough time studying the API to fully understand what it required. Yes, I suppose that would work. So p and afterLastNode are really just hints to the method to allow it to not step through parts of the outline which the caller knows do not include any of the target nodes? So they could default to p = c.rootPosition() and afterLastNode = None, giving you the c.callback_on_list(aList, callback, start=c.rootPosition(), end=None) API? 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.
