Skip to content

Instantly share code, notes, and snippets.

@VicDaAr
VicDaAr / redirect.py
Created February 13, 2020 19:44 — forked from rbonvall/redirect.py
Redirect both stdin and stdout of a process to a PyQt text edit.
from PyQt4 import QtGui, QtCore, uic
def p(x):
print x
class MainWindow(QtGui.QMainWindow):
def __init__(self):
QtGui.QWidget.__init__(self)
uic.loadUi('redirect.ui', self)