Advertisement
Klokova_Sofi

Andrey_PyQT5_1

Dec 8th, 2021
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. #!/usr/bin/python3
  2. # -*- coding: utf-8 -*-
  3.  
  4. import sys
  5. from PyQt5.QtWidgets import QApplication, QWidget, QPushButton
  6.  
  7.  
  8. if __name__ == '__main__':
  9.  
  10. app = QApplication(sys.argv)
  11.  
  12. w = QWidget()
  13.  
  14. btn = QPushButton('Кнопка', w)
  15. btn.resize(10, 200)
  16. btn.move(50, 50)
  17. btn.setToolTip('Это кнопка, на неё можно нажать')
  18.  
  19. w.resize(500, 500)
  20. w.move(0, 50)
  21. w.setWindowTitle('Simple')
  22. w.show()
  23.  
  24. sys.exit(app.exec_())
  25.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement