[PyQt] python cxfreeze package pyqt app lost icon and tray icon

Von vontio at gmail.com
Thu Sep 16 14:16:17 BST 2010


I did import the rc file in the Main.py and use cxfreeze --include-module
option to include the rc module
I made a gui bundle,so there wasn't any dos output.

On Thu, Sep 16, 2010 at 8:32 PM, Hans-Peter Jansen <hpj at urpla.net> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100916/91ec5944/attachment.html>


More information about the PyQt mailing list