How to Redirect a Python Console output to a QTextBox

Posted by krishnanunni on Stack Overflow See other posts from Stack Overflow or by krishnanunni
Published on 2010-05-18T16:40:33Z Indexed on 2010/05/18 17:00 UTC
Read the original article Hit count: 262

Filed under:
|
|
|
|

Hello, I'm working on developing a GUI for the recompilation of Linux kernel. For this I need to implement 4-5 Linux commands from Python. I use Qt as GUI designer. I have successfully implemented the commands using os.system() call. But the output is obtained at the console. The real problem is the output of command is a listing that takes almost 20-25 min continuous printing. How we can transfer this console output to a text box designed in Qt. Can any one help me to implement the setSource() operation in Qt using source as the live console outputs.

© Stack Overflow or respective owner

Related posts about python

Related posts about console