Advertisement
Guest User

Untitled

a guest
Aug 20th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #!/usr/bin/env python3
  2. #-*- coding:utf-8 -*-
  3.  
  4. import sys
  5. from PyQt5.QtCore import *
  6. from PyQt5.QtGui import *
  7. from PyQt5.QtWidgets import *
  8.  
  9. class embterminal(QWidget):
  10.  
  11. def __init__(self):
  12. QWidget.__init__(self)
  13. self.resize(700, 500)
  14. self.process = QProcess(self)
  15. winid = int(self.winId())
  16. self.process.start(
  17. '/usr/bin/urxvt',['-embed', str(winid)])
  18.  
  19. if __name__ == "__main__":
  20. app = QApplication(sys.argv)
  21. main = embterminal()
  22. main.show()
  23. sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement