Re: [pygame] Surface.get_buffer() pygame2exe

2009-05-21 Thread meticulos.slac...@gmail.com
thx, it's work!
 It's not including the bufferproxy module. Try adding import
 pygame.bufferproxy after import pygame. Hopefully this is fixed in
 Pygame 1.9.

 Lenard

 meticulos.slac...@gmail.com wrote:
 I compiled this code use pygame2exe script, and output *.exe file
 crashed at started. Script without compile work normally.
 How to fix it?

 import pygame
 pygame.init()
 s = pygame.Surface((10, 10), 0, 24)
 print s.get_buffer()

 Version:
 Python 2.6.2
 pygame1.8.1release

 PS. Surface.get_buffer() need for
 http://www.pygame.org/wiki/ShadowEffects?parent=CookBook. Maybe exists
 other module for make shadow which don't use this method?
   





[pygame] Surface.get_buffer() pygame2exe

2009-05-20 Thread meticulos.slac...@gmail.com
I compiled this code use pygame2exe script, and output *.exe file
crashed at started. Script without compile work normally.
How to fix it?

import pygame
pygame.init()
s = pygame.Surface((10, 10), 0, 24)
print s.get_buffer()

Version:
Python 2.6.2
pygame1.8.1release

PS. Surface.get_buffer() need for
http://www.pygame.org/wiki/ShadowEffects?parent=CookBook. Maybe exists
other module for make shadow which don't use this method?