在 星期四 07 五月 2009 23:32:26,Lukas Hetzenecker 写道: > Hello, > > you could redirect the interpreter’s standard error output stream: > sys.stderr = YourClass(window.edit, sys.__stderr__, QColor(Qt.red)) > YourClass in an "file-like" object (it has an write function) > window.edit is an instance of Qt's QTextEdit class and is used to display > the message. >
It seems this is a Really good idea! But what if I want to write messages to the original stderr(i.e, to the terminal)? -- Cheers, Grissiom
_______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
