On Friday, February 10, 2017 at 9:28:39 AM UTC-6, Edward K. Ream wrote:

I want to emphasize something.  Demo scripts can use *all *parts of Leo's 
> API to "run" Leo automatically. For example, this is one way to create a 
> new node:
>
> p = c.insertHeadline()
> p.h = 'a headline'
> p.b = 'some body text'
>

Recent revs make this work properly. See the change log 
<https://github.com/leo-editor/leo-editor/blob/master/leo/doc/demo.md#history-and-change-log>.
 
There were some tricky issues with control and screen refresh.  The summary:

demo.start now takes an "auto_run=False" keyword arg. When True, demo.start 
runs each demo script one after the other. The demo.auto_run ivar is a copy 
of this arg. As shown in the example top-level script 
<https://github.com/leo-editor/leo-editor/blob/master/leo/doc/demo.md#top-level-script>,
 
demo.teardown could insert inter-slide delays when self.auto_run is True.

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