In a script or @button:

# p is the position you'd like to insert after
pos = p.insertAfter()
pos.h = 'my string'
c.redraw_now()

Hope this helps!
-->Jake

On 4/28/2015 6:14 AM, jkn wrote:
Hi All
how can I programatically insert a node and set its headline to a given string please? I'm sure the answer is easy but my search-fu has failed me...

    Thanks
    Jon N

--
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 leo-editor+unsubscr...@googlegroups.com <mailto:leo-editor+unsubscr...@googlegroups.com>. To post to this group, send email to leo-editor@googlegroups.com <mailto:leo-editor@googlegroups.com>.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

--
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 leo-editor+unsubscr...@googlegroups.com.
To post to this group, send email to leo-editor@googlegroups.com.
Visit this group at http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to