Hi,

I have a Python application (written in PyQt) that starts an external app (calls a batch file using subprocess.Popen()). That external app is normally sending its output to the console (DOS command box). I would like to capture that output (both stdout and stderr) in real time and send it to a log window in my Python application (QTextBrowser window).

I've seen that, when I use the Eric4 debugger while running/debugging my Python application, all my external application output is nicely and in real time captured and shown in the Log-viewer window of the Eric4 IDE. That's exactly the behaviour that I want, but then to send that info to my log window in my application.

- How is this done in Eric4? I've looked into the source codes, but without a bit of explanation it's hard to grasp... - What's the best strategy to implement that log-viewer behaviour into my own log window of my application?

--
Best rgds,

Geert
________________________________________________

*Use EcoCho <http://www.ecocho.com>: environmentally friendly search the internet!*

_______________________________________________
Eric mailing list
Eric@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/eric

Reply via email to