Compile Qt Designer ui files to python scripts using the pyqode.qt
package instead of PyQt5
.
- The tool is a simple wrapper on top of
pyuic5
/pyrcc5
. It does two thing: - run pyuic5 or pyrcc5 (with the supplied arguments)
- replace
from PyQt5 import
byfrom pyqode.core.qt import
in the
This tool is part of the pyQode project.
Just run pyqode-uic
or pyqode-rcc
with the same arguments as you would have
used if you were using pyuic5
or pyrcc5
.
For example:
pyqode-uic --from-imports my_file.ui -o my_file_ui.py pyqode-rcc my_resources.qrc -o my_resources_rc.py
pip3 install pyqode-uic
This project is licensed under the MIT license.