how to load ui file in pyqt5

Solutions on MaxInterview for how to load ui file in pyqt5 by the best coders in the world

showing results for - "how to load ui file in pyqt5"
Martín
28 Jan 2016
1class Ui(QtWidgets.QMainWindow):
2    def __init__(self):
3        super(Ui, self).__init__() # Call the inherited classes __init__ method
4        uic.loadUi('basic.ui', self) # Load the .ui file
5        self.show() # Show the GUI
6