On Monday, May 1, 2017 at 2:11:36 PM UTC-5, Edward K. Ream wrote:

At present, the [gGui] and gLog module-level globals in cursesGui2.py are 
> workarounds to the usual communication problems that plague startup code
>

Recent revs replace these globals with properly inited ivars in various 
classes:

- 568793 removed gGui, collapsing CGui.runMainLoop.

The Aha was that g.app must *never* change. It must always be a LeoApp 
instance. Otoh, LeoApp.createCursesGui sets g.app.*gui* immediately, and 
*it* never changes.

- aee69e2 removed gLog. CApp.main sets g.app.gui.log.w for use by g.es.

- 6fc74a appends the CFrame to g.app.windowList, with frame.c correctly set.

This is another milestone. It means that the various curses gui classes are 
correctly "interwoven". In particular, self.c is available everywhere. This 
concludes the most difficult phase of initing the curses gui.

The next, straightforward, phase will be to show the body and tree panes. 
After that, the next (last?) phase will be to connect all necessary events.

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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to