[PyQt] python cxfreeze package pyqt app lost icon and tray icon
Von
vontio at gmail.com
Fri Sep 17 04:02:58 BST 2010
WOW,I resolved it finally.
I create a setup.py file scratch from cx_setup.py which from Armando.
The main purpose of the setup.py is to include plugins of PyQt4.Then build
with command:python setup.py build
That's all I have done,the icon shows.
Thank you Armando and Hans.
Bests,
On Thu, Sep 16, 2010 at 9:16 PM, "V. Armando Solé" <sole at esrf.fr> wrote:
> Hi Von,
>
>
> On 16/09/2010 08:38, 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
>>
>> Both app icon and tray icon used icon.jpg
>>
>> Regards,
>>
>>
> I had similar problems in the past and they were due to the generated
> binary not finding the qt libraries. I do not know if those issues are
> automatically handled by cx_freeze now.
>
> I solved them adding a qtconffile saying where to find them in the frozen
> binary.
>
> You can take a look at the cx_setup.py and the qtconffile files found in
> the pymca svn repository (http://pymca.svn.sourceforge.net/viewvc/pymca/ )
>
> Best regards,
>
> Armando
>
>
> _______________________________________________
> 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/20100917/04643305/attachment.html>
More information about the PyQt
mailing list