A startup puzzle

Edward K. Ream edreamleo at charter.net
Tue Sep 30 05:20:49 EDT 2003


> In short, the following pattern appears like it will work in all my
modules:
>
> from leoGlobals import *
> app = leoProxy() # leoProxy defined in leoGlobals
> # Now the code can reference either app.x or app().x.

Actually, app = leoProxy() can be done in leoGlobals, so the pattern is
just:

from leoGlobals import *
# Now the code can reference either app.x or app().x.

I have installed the new code in leoGlobals.py and everything "just works".

Edward
--------------------------------------------------------------------
Edward K. Ream   email:  edreamleo at charter.net
Leo: Literate Editor with Outlines
Leo: http://webpages.charter.net/edreamleo/front.html
--------------------------------------------------------------------






More information about the Python-list mailing list