How to get results into xojo from python script?

Hello all, how do I get a result from a python script in xojo?

I have a python script that counts features in an image. I can execute the script from xojo. How do I get the number returned from image_count.py back into my desktop xojo app?

Thank you.

If you are using a shell object to run your python script, whatever you print to stdout will end up in the Result property of the shell.

Hi Greg, is it possible for a xojo desktop app to communicate with terminal?

http://documentation.xojo.com/api/os/shell.html

Interactive mode shell. One thread per shell!