In PyQt, how can a terminal be embedded in a window?
问题 I have a small script that is designed to embed an xterm in a PyQt GUI. On Linux, it works, creating a GUI like this: However, running the same script on OS X yields two windows like this: Does anyone know how to address this and prevent OS X from screwing up the GUI? import sys from PyQt4.QtCore import * from PyQt4.QtGui import * class embeddedTerminal(QWidget): def __init__(self): QWidget.__init__(self) self.resize(800, 600) self.process = QProcess(self) self.terminal = QWidget(self) layout