Sep-05-2017, 07:48 AM
How to convert abc.ui into abc.py
for python 3.6.2
for python 3.6.2
How to convert abc.ui into abc.py
|
Sep-05-2017, 07:48 AM
How to convert abc.ui into abc.py
for python 3.6.2
you need to run:
pyuic4 abc.ui -o abc.pybut why don't you use pyQt5: https://pypi.python.org/pypi/pyqt5-installer or PyQt4 if you need an old version
Sep-09-2017, 04:12 PM
Hi everyone
The conversion is bugging me right now, i went to the directory of my ui file then opened a "command prompt window" from there then tried converting:pyuic5 FirstApp.ui -o FirstApp.py, i get a response that "the system cannot find the path specified" C:\Python\Python35\Lib\site-packages\PyQt5>pyuic5 FirstApp.ui -o FirstApp.py The system cannot find the path specified. Please advise ![]()
Save
FirstApp.ui in folder where pyuic5.exe is placed PyQt5\Scripts folder.Then from Scripts folder run same command. You can also load ui file straight in,then is no need to convert.from PyQt5 import uic, QtWidgets import sys class Ui(QtWidgets.QDialog): def __init__(self): super().__init__() uic.loadUi('FirstApp.ui', self) self.show() if __name__ == '__main__': app = QtWidgets.QApplication(sys.argv) window = Ui() sys.exit(app.exec_()) |
|