Python Forum
Convert .ui file .py
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Convert .ui file .py
#3
Quick test,with use of virtual environment.
C:\1
λ python -m venv pyqt_5
λ cd pyqt_5
λ C:\1\pyqt_5\Scripts\activate.bat

# Environment is active,install into it
(pyqt_5) C:\1\pyqt_5\Scripts
λ pip install PyQt5
# pyqt5-tools for designer 
λ pip install pyqt5-tools
I start designer.exe
C:\1\pyqt_5\Lib\site-packages\pyqt5-tools\designer.exe
I save my test.ui in C:\1\pyqt_5\Scripts
So now is test.ui and pyuic5.exe in same folder.
Test and app.py is made correct.
(pyqt_5) C:\1\pyqt_5\Scripts
λ pyuic5.exe test.ui -o app.py
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