You need to tell it what you want to name your python resource file as. So something like "pyrcc4 -py2 -o resources_rc.py" 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 resource_rc.py" instead of "import resource_rc.py" 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 > "qrc_resource.py" . 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@riverbankcomputing.com > http://www.riverbankcomputing.com/mailman/listinfo/pyqt > -- View this message in context: http://www.nabble.com/resource-name-problem-in-ui_*-tp23243006p23249418.html Sent from the PyQt mailing list archive at Nabble.com. _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt