Re: Crazy question: is it possible/reasonable to use Python in LC?

2023-07-23 Thread Tom Glod via use-livecode
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

Re: Crazy question: is it possible/reasonable to use Python in LC?

2023-07-17 Thread Ben Rubinstein via use-livecode
"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

Re: Crazy question: is it possible/reasonable to use Python in LC?

2023-07-13 Thread Mike Kerner via use-livecode
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

Crazy question: is it possible/reasonable to use Python in LC?

2023-07-13 Thread Geoff Canyon via use-livecode
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