On Thursday 16 September 2010, 13:30:28 Von wrote:
> Hi Hans,strange thing happens
> I put my icon.jpg file into the qrc file and compile it to py file.when I
> run my Main.py directly I can see the icon show up correctly,but while I
> use cxfreeze to package it,then it can't find the resource at all.Here is
> my simple code:
> pixmap = QtGui.QPixmap(":/icon.jpg") #:/icon.jpg is my resource name.
> assert(pixmap.isNull() == False)  --> #this line raise AssertionError

You need to include the module, you created beforehand.

It might be, that cx_freeze misses other modules/libs as well. Did something 
appear on the DOS shell, if running from there?

Pete
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to