Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. import sys
  2. from PyQt5 import uic
  3. from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
  4.  
  5.  
  6. class MyWidget(QMainWindow):
  7. def __init__(self):
  8. super().__init__()
  9. uic.loadUi('design1.ui', self)
  10.  
  11. self.buttonGroup.buttonClicked.connect(self.run)
  12. def run(self):
  13. pass
  14.  
  15. app = QApplication(sys.argv)
  16. ex = MyWidget()
  17. ex.show()
  18. sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement