Issue 318: Add custom icon for PyMT Window !
Project Member Reported by txprog, Aug 16, 2010
The default is just so ugly :)
Aug 25, 2010
Project Member #1 thomas.h...@gmail.com
i think its done, needs review
Status: Started
Owner: thomas.hansen
Sep 27, 2010
#2 faj...@gmail.com
Perhaps there should be a condition check whether the image icon can be loaded successfully or not.

I have PyGame 1.9.1release that I built myself and because I forgot to install SDL Image before I built it, my PyGame could not load Image files other than BMP files (see [1]). Since PyMT uses PNG image, my PyGame could not load the image and I got the following error when running PyMT:

    pygame.error: File is not a Windows BMP file

The icon:

$ grep window_icon ~/.pymt/config 
window_icon = /Users/iang/.pymt/icon/pymt32.png

$ file /Users/iang/.pymt/icon/pymt32.png
/Users/iang/.pymt/icon/pymt32.png: PNG image, 32 x 32, 8-bit/color RGBA, non-interlaced

I am using Mac OS X 10.6.4, Python 2.6.1, and PyGame 1.9.1release

[1] http://archives.seul.org/pygame/users/Feb-2002/msg00113.html

0001-Only-set-the-window-icon-if-PyGame-loads-the-image-i.patch
1.0 KB   View   Download