osx - How can a terminal be embedded in a PyQt window in OS X? -


i've written pyqt gui features embedded terminal (xterm). use ubuntu , works fine on i've found colleagues run os x having difficulties: terminal showing separate window. how should terminal embedded in os x? need gui same on both linux , os x.

import sys pyqt4.qtcore import * pyqt4.qtgui import *  class embedded_terminal(qwidget):      def __init__(self):         qwidget.__init__(self)         self.resize(800, 600)         self.process = qprocess(self)         self.terminal = qwidget(self)         layout = qvboxlayout(self)         layout.addwidget(self.terminal)         self.process.start('xterm', ['-into', str(self.terminal.winid())])  if __name__ == "__main__":     app = qapplication(sys.argv)     main = embedded_terminal()     main.show()     sys.exit(app.exec_()) 


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -