On Mon, Oct 20, 2008 at 4:20 PM, Edward K. Ream <[EMAIL PROTECTED]> wrote:
>> Yeah, this is what I was alarmed about recently. Perhaps the >> tkinter-like drawing code should me implemented in drawTree after all, >> or a finer grained tree redrawing be implemented. > > I'm not sure what to do, but this has the highest priority. It's > probably the only make-or-break item. Agreed. At the moment, the easiest (if not the best performing) option will be to copy the tree drawing logic from tk (draw only expanded items). It won't require any core changes, at least. There are 2 "catches": - You need to add a dummy child under the new items that are expanded, if they have any, to draw the plus sign to the parent - You need to redraw the tree when you expand items that haven't been expanded before. This should happen on itemExpanded signal, not in core (because the tree code can expand the nodes without consuling core, e.g. by mouse clicks). -- Ville M. Vainio http://tinyurl.com/vainio --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
