This seemed to work for me:

You need two files, a bitmap of the icon, here dubbed "AppIcon.png",
and an icns file created in Icon Composer, here dubbed "AppIcon.icns".
Place both folder where your main python script is located then, in
the main python script, append the following just after pygame.init(),
*before* pygame.display.set_mode().

pygame.display.set_icon(pygame.image.load('AppIcon.png'))

Next, when you build using py2app, build as follows:

python setup.py py2app --iconfile AppIcon.icns --resources AppIcon.png

-- 
Mike Lawrence
Graduate Student
Department of Psychology
Dalhousie University

Looking to arrange a meeting? Check my public calendar:
http://tr.im/mikes_public_calendar

~ Certainty is folly... I think. ~
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to