[PyQt] python cxfreeze package pyqt app lost icon and tray icon
Von
vontio at gmail.com
Thu Sep 16 12:30:28 BST 2010
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
On Thu, Sep 16, 2010 at 6:23 PM, Hans-Peter Jansen <hpj at urpla.net> wrote:
> On Thursday 16 September 2010, 08:38:00 Von wrote:
> > Hi,
> > Here is my command:
> > cxfreeze --target-dir=AutoOrder gui.py
> > --base-name=D:\Python31\Lib\site-packages\cx_Freeze\bases\Win32GUI.exe
> > --include-path=. -z icon.jpg
>
> I haven't used cx_freeze, but why don't you wrap them into a python module
> with pyrcc4. The deleayedencoding example, I've send to the list lately,
> includes an Makefile for that task. BTW, pyrcc4 is able to wrap any data
> files, translation files, etc..
>
> > Both app icon and tray icon used icon.jpg
>
> Pete
> _______________________________________________
> PyQt mailing list PyQt at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/pyqt
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20100916/d45c62f5/attachment.html>
More information about the PyQt
mailing list