Leo + Python: the ultimate scripting tool #3

Edward K. Ream edreamleo at charter.net
Sat Nov 8 11:18:28 EST 2003


Reasons why Leo and Python work so well together:

3.  Scripts may use the structure of Leo's outlines.

This is a first "big" reason why the combination of Python & Leo is
spectacular.  As shown in the example above, scripts may get access to the
headline or body text of any node in a Leo outline.  Therefore, scripts may
use the _structure_ of the outline to gain access to a) other scripts, b)
fragments of code for exec or eval or c) other data.

It gets better...

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