Issue 318 in pymt: Add custom icon for PyMT Window !

0 views
Skip to first unread message

py...@googlecode.com

unread,
Aug 16, 2010, 6:44:23 PM8/16/10
to pymt-...@googlegroups.com
Status: Accepted
Owner: txprog
Labels: Type-Enhancement Priority-Medium

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 :)

py...@googlecode.com

unread,
Aug 25, 2010, 3:49:29 AM8/25/10
to pymt-...@googlegroups.com
Updates:
Status: Started
Owner: thomas.hansen

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

py...@googlecode.com

unread,
Sep 27, 2010, 8:09:08 AM9/27/10
to pymt-...@googlegroups.com

Comment #2 on issue 318 by fajran: Add custom icon for PyMT Window !
http://code.google.com/p/pymt/issues/detail?id=318

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

Reply all
Reply to author
Forward
0 new messages