On Wed, Sep 16, 2009 at 11:15 AM, Peter Chant
<pete@xxxxxxxxxxxxxxx> wrote:
D'oh so obvious. What I regularly do whilst developing things, but not when
bugs suddenly appear.
FOUND IT!
self.screen.blit(clear,(0,0))
- look for the exclamation marks
def clearScreen(self):
print "In clearScreen"
print "About to call pygame.display_get_surface()"
clear = pygame.display.get_surface()
print "About to fill surface to clear it"
clear.fill((0,0,0))
print "About to self.screen.blit - !!!! this crashes"
self.screen.blit(clear,(0,0))
print "just blitted - !!!!! does not get to here"
self.screen is initialised by the output of another class.
self.screen = h.screen
in class h
self.screen=pygame.display.get_surface()