Guest User

Untitled

a guest
Sep 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. import sys
  2. from PyQt5 import QtGui
  3. from PyQt5.QtWidgets import QApplication, QMainWindow
  4.  
  5.  
  6. class Window(QMainWindow):
  7. def __init__(self):
  8. super().__init__()
  9.  
  10. self.title = "Hello Guy!!!"
  11. self.top = 100
  12. self.left = 100
  13. self.width = 680
  14. self.height = 500
  15. self.init()
  16.  
  17. def init(self):
  18. self.setWindowTitle(self.title)
  19. self.setGeometry(self.top, self.left, self.width, self.height)
  20.  
  21.  
  22. App = QApplication(sys.argv)
  23. window = Window()
  24. sys.exit(App.exec())
Add Comment
Please, Sign In to add comment