On Fri, Nov 16, 2012 at 1:14 AM, Curtis Carlsen <[email protected]> wrote:
>
> I have the following code in an @command node:

[snip]

> The code seems to work fine at first...but when I do a save, the changes are 
> reverted.

Good question.

Your code changes the widget, but not the associated body text.
Adding the following as the last line works for me (tested code)::

    p.b = w.getAllText()

Also note that the call to c.setChanged must be::

    c.setChanged(True)

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