Advertisement
Guest User

new

a guest
Jan 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.49 KB | None | 0 0
  1. import sys
  2. from PyQt5.QtWidgets import QApplication, QWidget
  3. from PyQt5.QtGui import QIcon
  4.  
  5. class App(QWidget):
  6.  
  7. def __init__(self):
  8. super().__init__()
  9. self.title = 'PyQt5 simple window - pythonspot.com'
  10. self.left = 10
  11. self.top = 10
  12. self.width = 640
  13. self.height = 480
  14. self.initUI()
  15.  
  16. def initUI(self):
  17. self.setWindowTitle(self.title)
  18. self.setGeometry(self.left, self.top, self.width, self.height)
  19. self.show()
  20.  
  21. if __name__ == '__main__':
  22. app = QApplication(sys.argv)
  23. ex = App()
  24. sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement