My first open question to the internet: I am using python (v2.1) to (among other things) launch a seperate process using popen4. The seperate process is a c++ executable, running under linux or Windows. The simulation is meant to run for some time, idealy overnight. I would like to capture the data sent to standard out and standard error (from the child process) and display it in a TkInter Text Edit widget in real time. As it stands I click the start button and have to wait a ...LONG.... time, for the child process to terminate, before I can capture the data and update the display.
In the compile/test phase of development this is a pain since I don't know if something broke or if the simulation is still running (infinte loop etc...). I was wondering if there is a 'best practice way', an easy way, a built in way, to capture data coming out a child process' standard and error outputs. Also, I have noticed that it can be difficult to develop TkInter based apps while working within IDLE or PythonWin. Presumably this is because these both use Tkinter. Is there any place to look for tips/tricks to developing Python Gui's using these tools while still being able to run the final build independently of these tools? Edward Zdankiewicz [EMAIL PROTECTED] _______________________________________________ ActivePython mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs Other options: http://listserv.ActiveState.com/mailman/listinfo/ActivePython