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 .
Asked
Active
Viewed 1,723 times
1
-
Are you using PyQt4 or PyQt5? And please be specific on "its not working". – Sнаđошƒаӽ Nov 01 '16 at 04:59
-
the pyuic4 not on the path environment? be specified about it? – herokingsley Nov 01 '16 at 06:27
2 Answers
4
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

Burhan Khalid
- 169,990
- 18
- 245
- 284

areiilla
- 107
- 2
- 7
0
have an application created to convert the .ui (Pyqt5 Created by qt designer) file to py ( you can use for windows it will work perfectly)
you can convert your file easily using this application, Direct Download Link: https://download1653.mediafire.com/utmxc4pza7ug/1f0gkwk6577g7fi/Ui+to+Py.zip
Mediafire link to download: https://www.mediafire.com/file/1f0gkwk6577g7fi/Ui_to_Py.zip/file
you check the source code of the application on my GitHub: https://github.com/Harvindar994/
tags: python, pyqt5, qt designer
-
Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Apr 12 '22 at 13:26