On Wed, Aug 29, 2012 at 4:11 PM, Rand <[email protected]> wrote:
> I want to add a tree of nodes to Leo via a python script.
>
> Can someone give me an example ?

leoPy.leo contains numerous examples.

You can also use Brian's suggestion to use
c.executeMinibufferCommand, but it also happens that using Leo's
built-in capabilities gives you more flexibility.  Some places to look
at in leoPy.leo:

   @file leoNodes.py-->class position-->
    p.Moving, Inserting, Deleting, Cloning, Sorting

    @file leoCommands.py-->class commands-->
    Command handlers...-->Outline menu...--> Top Level... (Commands)-->
    c.Cut & Paste Outlines

HTH.  Let me know if you have other questions.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to