[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Dead display surfaces



On Sun, 2006-09-24 at 15:17 +1000, Luke Miller wrote:
> What is a "Dead Display" surface in pygame, and what might cause it?

I think the only thing that should cause it is calling
pygame.display.quit() or pygame.quit() and then accessing the Surface
for the screen. Presumably some error condition could cause this, but I
can't think of anything that should.


>>> import pygame
>>> pygame.display.init()
>>> screen = pygame.display.set_mode((100, 100))
>>> pygame.event.pump()
>>> print screen
<Surface(100x100x32 SW)>
>>> pygame.display.quit()
>>> print screen
<Surface(Dead Display)>