Advertisement
Klokova_Sofi

Andrey_PyQT5_2

Dec 8th, 2021
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. import sys
  5. from PyQt5.QtWidgets import QApplication, QWidget
  6.  
  7.  
  8. class Example(QWidget):
  9.  
  10. def __init__(self):
  11. super().__init__()
  12. self.initUI()
  13.  
  14. def initUI(self):
  15. self.setGeometry(300, 300, 300, 220)
  16. self.show()
  17.  
  18.  
  19. if __name__ == '__main__':
  20. app = QApplication(sys.argv)
  21. ex = Example()
  22. sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement