1

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 .

NIKHIL PUNNOOSE
  • 129
  • 1
  • 6

2 Answers2

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