[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pygame] Killing a pygame window



> Pygame is GRREEAAT for testing out algorithms
> via the interpreter.  But how does one close
> a graphics window properly without hanging
> it?

hi sy, and here i thought i was the only one to use
the interactive python to run pygame. (although i do
it for debugging, i have an excuse :] )

anyways, there is no way in SDL to close a display
window without quitting the display subsystem.

in pygame this is easily done with pygame.display.quit()
or just pygame.quit(). it is fine to go in and re-init
any modules you quit.

although you must be careful when doing this because SDL
will free a lot of structures that you still have python
variables referencing. i've just noticing this by playing
with python with the interactive prompt and am looking to
see if something can be done



____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org