Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python3
- #-*- coding:utf-8 -*-
- import sys
- from PyQt5.QtCore import *
- from PyQt5.QtGui import *
- from PyQt5.QtWidgets import *
- class embterminal(QWidget):
- def __init__(self):
- QWidget.__init__(self)
- self.resize(700, 500)
- self.process = QProcess(self)
- winid = int(self.winId())
- self.process.start(
- '/usr/bin/urxvt',['-embed', str(winid)])
- if __name__ == "__main__":
- app = QApplication(sys.argv)
- main = embterminal()
- main.show()
- sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement