How to convert .ui to py in windows ?

自作多情 提交于 2019-12-11 05:49:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!