Skip to content

Instantly share code, notes, and snippets.

@Caser0
Caser0 / redirect.py
Created October 29, 2019 02:33 — 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)