On Mon, Oct 20, 2008 at 5:41 PM, Ville M. Vainio <[EMAIL PROTECTED]> wrote:
>> The commander now has methods such as: >> >> def redraw_after_icons_changed(self): >> return self.frame.tree.redraw_after_icons_changed() > > I suppose you will use the current position as indicator where the > modification happens? Yes. Leo's core still call redraw in more global cases, like promote and demote. But due to clones, any operation can change arbitrarily many visible nodes, so no operation can be said to be truly "localized". >> (demand) that the entire tree be updated. This will likely be done by >> drawing only the visible widgets, in which case >> tree.redraw_after_expand has got some real work to do. > > Why not just create only the child nodes on expand? Because expanding a node can reveal arbitrarily many descendant nodes, depending on the expansion state of the newly revealed direct children. Anyway, such details will become clear as I play with the various pieces of the puzzle. 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 -~----------~----~----~----~------~----~------~--~---
