PyQt is a great package for GUI development in Windows/Linux for applications like Embedded, Robotics, OpenCV, ML etc. If your code is build in PyQt4 but now you want to upgrade to PyQt5 then read follow this post.
Read more about PyQt4 GUI development:
- http://www.vslcreations.com/2016/06/best-python-package-to-develop-gui.html
- http://www.vslcreations.com/2016/11/how-to-create-gui-window-for-python.html
Some software developed in PyQt4:
Follow steps below:
- 1. Download Source: https://github.com/rferrazz/pyqt4topyqt5
- 2. Extract files inside your source_code directory.
- 3. Install PyQt5
- Linux:
- sudo apt-get install python-pyqt5
- sudo apt-get install pyqt5-dev-tools
- sudo apt-get install qttools5-dev-tools
- Windows: https://sourceforge.net/projects/pyqt/files/PyQt5/PyQt-5.10/
- 4. Change directory to your source_code.
- 5. Execute this command: python pyqt4topyqt5.py source.py -o output.py
- 6. Now, rename output.py to source.py
- 7. You have to repeat step 5 & 6 for all source.py containing import PyQt4
Very creative postt
ReplyDelete