Create a new outline.
Paste the following into the the NewHeadline node:
new_node = c.p.insertAsLastChild()
new_node.initHeadString("I am a new node")
new_node.moveAfter(c.rootPosition())
c.redraw()
Make the node a script button.
Click the button twice.
It works, but the headline of the original node is changed to "I am a
new node".
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---