From: le d. <le....@la...> - 2015-06-02 13:59:49
|
Hi. Is there a documentation that explains clearly the steps to do to get Windows 7 display correctly the icons in .exe files ? Regards, Klaas Le 06/12/2010 11:48, Timo a écrit : > > On 06-12-10 03:09, He Jibo wrote: >> Hi, >> Could someone help me with embed icon in .exe with py2exe? >> I used py2exe to build my software using PySide and Reportlab. The >> deployed software has icon visible under windows xp, but NOT visible >> in Windows 7. > I had the same problem, but it wasn't related to Py2exe. My icon worked > fine under XP, but not under Vista or 7. The problem was that my icon > wasn't in the correct format for Vista/7. I,- can't give you more > details because I ditched all tools/sites that I used when everything > worked, but you should do a Google search for "Vista icon" or something > like that. If I remember correctly, it had something to do with the > various formats of the icon I packed into the ico-file. > > Cheers, > Timo > > >> I have refered to the following links, but have not found a solution. >> I also put my setup.py file below. Thanks. >> >> http://stackoverflow.com/questions/289668/how-do-i-use-my-icons-when-compiling-my-python-program-with-py2exe >> http://stackoverflow.com/questions/525329/embedding-icon-in-exe-with-py2exe-visible-in-vista >> http://www.py2exe.org/index.cgi/CustomIcons >> >> >> ''' >> http://web.archiveorange.com/archive/v/5H3d11fesgvZXKvrYblh >> ''' >> # Used successfully in Python2.5 with matplotlib 0.91.2 and PyQt4 (and >> Qt 4.3.3) >> from distutils.core import setup >> import py2exe >> #import mechanize >> >> >> # We need to import the glob module to search for all files. >> import glob >> >> # We need to exclude matplotlib backends not being used by this >> executable. You may find >> # that you need different excludes to create a working executable with >> your chosen backend. >> # We also need to include include various numerix libraries that the >> other functions call. >> >> opts = { >> 'py2exe': { "includes" : ["sip"], >> 'excludes': ['_gtkagg', '_tkagg', '_agg2', '_cairo', >> '_cocoaagg', >> '_fltkagg', '_gtk', '_gtkcairo', ], >> 'dll_excludes': ['libgdk-win32-2.0-0.dll', >> 'libgobject-2.0-0.dll'], >> 'packages': ['lxml','pyquery','mechanize','reportlab'], >> >> } >> } >> >> # Save matplotlib-data to mpl-data ( It is located in the >> matplotlib\mpl-data >> # folder and the compiled programs will look for it in \mpl-data >> # note: using matplotlib.get_mpldata_info >> >> >> # for console program use 'console = [{"script" : "scriptname.py"}] >> setup(name="Link Validator 1.2", >> version="1.1", >> description = " Link Validator 1.2", >> >> author="He, Jibo", >> author_email="he...@gm... <mailto:he...@gm...>", >> url="http://goldenclickonline.appspot.com", >> # zipfile = True, >> windows=[{"script" : >> "TopTenRank.py"*,'icon_resources':[(0,"top10ranking.ico")*]}], >> options=opts) >> >> >> >> >> ------------------------------------------------------------------------------ >> What happens now with your Lotus Notes apps - do you make another costly >> upgrade, or settle for being marooned without product support? Time to move >> off Lotus Notes and onto the cloud with Force.com, apps are easier to build, >> use, and manage than apps on traditional platforms. Sign up for the Lotus >> Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d >> >> >> _______________________________________________ >> Py2exe-users mailing list >> Py2...@li... >> https://lists.sourceforge.net/lists/listinfo/py2exe-users > > > ------------------------------------------------------------------------------ > What happens now with your Lotus Notes apps - do you make another costly > upgrade, or settle for being marooned without product support? Time to move > off Lotus Notes and onto the cloud with Force.com, apps are easier to build, > use, and manage than apps on traditional platforms. Sign up for the Lotus > Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d > _______________________________________________ > Py2exe-users mailing list > Py2...@li... > https://lists.sourceforge.net/lists/listinfo/py2exe-users > > |