re[PyQt] source name problem in ui_*

Demetrius Cassidy dcassidy36 at
Mon Apr 27 04:10:22 BST 2009

You need to tell it what you want to name your python resource file as. So
something like "pyrcc4 -py2 -o" will create the correct file
that is imported in the ui file.

Now if anyone knows _how_ to change the path to the resource file in your
ui, so pyuic does "from something import" instead of "import" I would like to know.

Robert Norman wrote:
> I'm new to PyQt and have been impressed with the ease of use and power of
> the system.  One quirk that I can't seem to get a handle on is that when I
> run the tools to make my ui_* file from a designer file, the included
> resource is improperly named. So if there is a "resource.qrc" file then
> the
> ui_* file contains "import resource_qc"  but the tools make
> "" . I've just been renaming either the file or the
> reference
> just go get moving on some projects but would like to understand what's
> happening.
> What am I missing?
> _______________________________________________
> PyQt mailing list    PyQt at

View this message in context:*-tp23243006p23249418.html
Sent from the PyQt mailing list archive at

More information about the PyQt mailing list