One way to do it would be running python "service" executable, and you send
it the code via socket to execute.
In python the "do" equivalent is "exec()" ... although obviously the
service will need access to the data that is involved with the code.
Then you return the result to lc in whatever way
"do ... as python" ??
On 13/07/2023 21:03, Geoff Canyon via use-livecode wrote:
I've been playing with Python, and it has a lot of nice qualities, but a
built-in GUI isn't one of them (no apologies to tkinter).
So it would be interesting/nice to be able to open LC, add a button to a
stack, and
there are no crazy questions
there is, however, bat-guano-crazy geoff canyon
anyway, i think you will have to write the parser, linker, lexical
analyzer, etc., and all the other pre-compiler stuff that you would
have to write for any language. i'm not aware of something like a DLL
for python.
even
I've been playing with Python, and it has a lot of nice qualities, but a
built-in GUI isn't one of them (no apologies to tkinter).
So it would be interesting/nice to be able to open LC, add a button to a
stack, and put some python into the script of that button and have it just
work, with access