Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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
Source by nitratine.net #
 
PREVIOUS NEXT
Tagged: #load #ui #file
ADD COMMENT
Topic
Name
9+6 =