New issue 318 by txprog: Add custom icon for PyMT Window !
http://code.google.com/p/pymt/issues/detail?id=318
The default is just so ugly :)
Comment #1 on issue 318 by thomas.hansen: Add custom icon for PyMT Window !
http://code.google.com/p/pymt/issues/detail?id=318
i think its done, needs review
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
Attachments:
0001-Only-set-the-window-icon-if-PyGame-loads-the-image-i.patch 1.0 KB