Great! Thanks for those clarifications! On Tuesday, September 29, 2020 at 6:23:34 AM UTC-4, Edward K. Ream wrote: > > > > On Mon, Sep 28, 2020 at 4:23 PM Félix <[email protected] <javascript:>> > wrote: > >> I'm trying some stuff out for my "issue 39" and re-write of my >> body-handler in general and I was wondering : >> >> Leo does keep a different instance of frame, body and wrapper instead of >> reusing the same when switching from one opened document to the other by >> using tabs at the top right? >> > > Correct. c.frame, c.frame.body, c.frame.tree, c.frame.log, etc. all change > when c.changes. And c changes when switching outlines. > > Meaning that It does not 're-use' the same ones (and just rapidly change >> their contents and widths / scroll positions when switching) ,but instead >> it hides and shows each one accordingly, right? >> > > Yes, I think so. I had to think for awhile how this all works. > > The very gory details are in the all-important tree.select method of the > base LeoTree class. Also, c.redraw is involved. The point is that > tree.select handles the very tricky details of switch c and all the rest, > while c.redraw redraws *c's* tree, not some global, generic tree. > > I've inspected those in the debugger, and they seem distinct, but I just >> wanted to make sure... >> > > Another way would be to do g.trace(id(x)) where x could be c, c.body, etc. > > Edward >
-- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/b8b0711c-309e-420e-a16f-284331615c58o%40googlegroups.com.
