Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import sys
- from PyQt5 import uic
- from PyQt5.QtWidgets import QApplication, QWidget, QMainWindow
- class MyWidget(QMainWindow):
- def __init__(self):
- super().__init__()
- uic.loadUi('design1.ui', self)
- self.buttonGroup.buttonClicked.connect(self.run)
- def run(self):
- pass
- app = QApplication(sys.argv)
- ex = MyWidget()
- ex.show()
- sys.exit(app.exec_())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement