mansrz / pymt

Automatically exported from code.google.com/p/pymt
0 stars 0 forks source link

Add custom icon for PyMT Window ! #318

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The default is just so ugly :)

Original issue reported on code.google.com by txprog on 16 Aug 2010 at 10:44

GoogleCodeExporter commented 9 years ago
i think its done, needs review

Original comment by thomas.h...@gmail.com on 25 Aug 2010 at 7:48

GoogleCodeExporter commented 9 years ago
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

Original comment by faj...@gmail.com on 27 Sep 2010 at 12:08

Attachments: