问题
I followed this link to convert .ui to .py using python in windows but its not working.I tried installing pyuic4 but its not working. Is there any tools or libraries in python for doing it? Please suggest .
回答1:
why not just import it?
import sys
from PyQt4 import QtGui, uic
app = QtGui.QApplication(sys.argv)
widget = uic.loadUi('demo.ui')
widget.show()
sys.exit(app.exec_())
ps: sorry i cant answer in comment section. my reputation too low
来源:https://stackoverflow.com/questions/40354127/how-to-convert-ui-to-py-in-windows