Python Forum
Convert .ui file .py
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert .ui file .py
#1
Hi

I am experiencing an issue regarding to convert an .ui file to .py.

I am running QT Designer 3.6 with PyQt5. I have tried the below commands for converting but I still cannot get it right.

C:\Python35\Lib\site-packages\PyQt5>pyuic5 -o FirstApp.py FirstApp.ui
C:\Python35\Lib\site-packages\PyQt5>pyuic5 -o FirstApp.ui FirstApp.py
C:\Python35\Lib\site-packages\PyQt5>pyuic5 -x FirstApp.ui -o FirstApp.py
C:\Python35\Lib\site-packages\PyQt5>pyuic5.bat -x FirstApp.ui -o FirstApp.py
C:\Python35\Lib\site-packages\PyQt5>pyuic5.bat --execute FirstApp.ui -o FirstApp.py
C:\Python35\Lib\site-packages\PyQt5>pyuic5.bat --execute FirstApp.ui --output FirstApp.py

When I check in the folder PyQt5, there is only .ui file and the .py is not created. Can someone please help with this issue.

Kind regards
Mpho
Reply


Messages In This Thread
Convert .ui file .py - by mailal - Jul-15-2017, 05:42 PM
RE: Convert .ui file .py - by Barrowman - Jul-15-2017, 08:35 PM
RE: Convert .ui file .py - by snippsat - Jul-15-2017, 11:00 PM
RE: Convert .ui file .py - by mailal - Jul-16-2017, 08:01 PM
RE: Convert .ui file .py - by Barrowman - Jul-16-2017, 08:47 PM
RE: Convert .ui file .py - by snippsat - Jul-17-2017, 04:33 PM
RE: Convert .ui file .py - by Sophus - Jul-26-2017, 05:06 PM
RE: Convert .ui file .py - by Jagger - Mar-25-2019, 08:05 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020