Quote:designer create.ui
files that can be converted,or as in example under dynamically load the.ui
files by using the uic in PyQt5.
from PyQt5 import uic, QtWidgets import sys class Ui(QtWidgets.QDialog): def __init__(self): super(Ui, self).__init__() uic.loadUi('SomeUi.ui', self) self.show() if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) window = Ui() sys.exit(app.exec_())
Quote:I dont understand what you mean here. (I'm beginner about Python. This may be a reason)Now i can understand more clear. I make a project, and save on my documents .ui
Where should i apply this code ? I tried CMD and it gave ineffability.
But i should see form of code, so project should be converted. I want to ask how i do this for file being "pyqtdesigner.ui". Which lines should be changed?