I'm being a bit dim here, but:

I am writing a simple command to append text to the body of a node. The 
only commands I have written before set the entire body text to some value.

What do I have to call after using w.insert() etc. to make these changes 
persistent.?

c.redraw() does not seem to do the trick.

The (outdated?) scripting miscellany: 
https://leo-editor.github.io/leo-editor/scripting-miscellany.html

suggests that c.frame.body.onBodyChanged should be called; but it looks 
like this is not longer the case.

A trivial example (that I do not seem to be able to find) would be helpful 
- thanks.

w = c.frame.body.wrapper
for line in range(10):
    w.appendText("%d\n" % line)

# now what?

    J^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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/3413bc7e-6225-45d7-b2b5-72fdff453d75n%40googlegroups.com.

Reply via email to