Hello Damjan, All,

this is great!

I've played a bit with Python macros and I think I found a small bug.

On Sun, Apr 26, 2026 at 08:36:07PM +0200, Damjan Jovanovic wrote:

[...]

> Most of all, Python scripts can now be edited :-), in a custom little
> dialog window with "Run", "Save" and "Close" buttons. It all works, they
> run, they are successfully saved into the document, and can be re-opened.
> The editing could still be improved a lot, with line numbers, debugging, a
> resizable window and fixed width font, etc., but I don't have time for that
> now, and to be fair, the BeanShell editor isn't much better.

When we click button "Save" of the new Python editing dialog, the code
is saved, but apparently is not ``active'' yet.

In other words, the ``old'' Python source code is still executed
whenever we ask to ``run'' a macro.

In order to run the new code, we have to close and reopen the
_document_.

> All my changes have been pushed to the python-editing-embedding branch.
> Please test. I'll merge it in a few days if there are no objections.

-- 
Arrigo

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to