Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import typing
- from PyQt5.QtWidgets import QMainWindow, QApplication, QPushButton, QTextBrowser, QWidget
- from PyQt5 import QtCore, uic
- import sys
- class UI(QMainWindow):
- def __init__(self):
- super(UI, self).__init__()
- #load file
- uic.loadUi("ui.ui",self)
- #show the app
- self.show()
- app = QApplication(sys.argv)
- UIWindow = UI()
- app.exec_()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement