HI,
I launch my application by 'python script.py'
I've already add a sys.stdout.flush with no effect.
if the idle_add is an alternative to thread, where to get details
about its use (no reference in http://www.pygtk.org/docs/pygtk/
index.html, but very brief information in GTK+ documentation)
In
Hi,
how do you start the python app? Goes stdout
to a terminal or a pipe?
"python script.py"
and "python script.py | cat" behave different.
Maybe "sys.stdout.flush()" helps you.
BTW, I switched from threads to idle_add for pygtk
applications.
awalter1 wrote:
> Hello,
>
> I'm developping an app
Hello,
I'm developping an application with python, pyGTK and GTK+.
I've performed many tests by using methods as Popen, popen2,
os.system ... to communicate with Unix (HPUX),
The last attempt is this code written in a thread :
fin,fout = popen2.popen2('ps -def')
line = fin