I have the following functionality, currently made with PacalScript, and I want to implement it in Python.
I create a script component on the fly and programmatically create some variables of different types inside it.
After I load the script proportionated by the user and I execute it.
If all goes well, I recover the current values of the firstly proportionated variables and apply them to my Delphi program.
Also, the end user can use some methods implemented in the Delphi main program inside the script.
Summarizing:
1- I need to create variables on the fly inside a Python Script.
2- I need to recover the current values of some variables inside a Python Script.
3- I need to create some functions inside a Python script that can be called from it but really exists in the host Delphi program.
Can anyone help me or knows where I can find examples of these three functionalities?