Answers for "pyqt5 import ui file"

2

how to load ui file in pyqt5

class Ui(QtWidgets.QMainWindow):
    def __init__(self):
        super(Ui, self).__init__() # Call the inherited classes __init__ method
        uic.loadUi('basic.ui', self) # Load the .ui file
        self.show() # Show the GUI
Posted by: Guest on November-22-2020

Code answers related to "pyqt5 import ui file"

Python Answers by Framework

Browse Popular Code Answers by Language