procedure TSortThread.ExecuteWithPython;
var pyfunc: PPyObject;
begin
......
if Assigned(fScript) then
ExecStrings(fScript);
pyfunc := FindFunction( ExecModule, fpyfuncname);
if Assigned(pyfunc) then
try
EvalFunction(pyfunc,[NativeInt(self),0,FSize]);
except
end;
I can see that TPythonThread can Exec script or find a Function in global script and Exec it. But how can I use PythonInputOutput1 to interact with the Thread? How can I get a user interact with the Thread's script?