Here I have two scripts: main.py and sub.py
- sub.py is a wxpython based app which just show a text (received as a
required parameter, for example: sub.py "Hello world!").
- In main.py, it calls sub.py using subprocess and send a parameter at
first call.
And my problem is how to update the corresponding parameter of sub.py in main.py which re-send a new parameter without restart (or recall) sub.py?
Something like these in main.py:
subprocess.Popen('sub.py "Hello, world"')
subprocess.update('sub.py "Hi, world!"')#(just update the parameter without reopen sub.py)<br>
Is this possible? So how to design such programs that communicate each other?
Thank you!!!