[PyQt] py3qt5 system path

Ritesh Raj Sarraf rrs at researchut.com
Sat Jul 1 17:40:23 BST 2017


On Wed, 2017-06-28 at 14:18 +0100, Baz Walter wrote:
> Compile the gui modules like this:
> 
>      pyuic4 --from-imports -o $OUTDIR/output.py input.ui
> 
> This will add the correct import statement to the end of the
> generated 
> gui module. You should then compile the resources module like this:
> 
>      pyrcc4 -o $OUTDIR/resources_rc.py resources.qrc
> 
> For this to work, the resources module **MUST** be written to the
> same 
> directory as the gui modules. Also, the resources file **MUST** be
> named 
> "resources_rc.py" (although, if you really need to, you can modify
> it 
> slightly using the pyuic4 --resource-suffix option).

Thank you so much. That was the problem. After fixing the way I
generated the files, correct import names (and syntax) have been set.


Thanks,
Ritesh



More information about the PyQt mailing list