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

Re: [pygame] Killing a pygame window




> Hmm this is strange, in Win2K SP 1,
> when I do a pygame.quit(), IDLE
> freezes or does not repaint the
> screen.  Not until I right click 
> (left-click doesn't work) on the 
> taskbar button corresponding to the 
> IDLE window. Pygame.Quit()'s fault
> or IDLE's fault?

yeah, i just tested this too and got the same results.
i think technically this would be an IDLE problem, but
it is very likely that pygame/SDL is not being very
cooperative also.

i think most of the problem comes from the fact that
tkinter and pygame are both written in a way that they
expect they will be the only part of the program dealing
with windows in their process.

i'm pretty sure this can't really be fixed in the
tkinter/pygame libraries, but would have to be dealt with
in the underlying libraries, tcltk/sdl.

actually. the IDLE editor seems to do a much better job
than pythonwin which seems to always crash and die when
initializing pygame. my guess here is that IDLE is doing
a better job of keeping the interactive interpreter in a
separate thread.

anyways. no real solution for you here, but i don't believe
there are any ongoing offorts to get this fixed up. i'd start
with the IDLE team though, since their app does return, they
might be able to detect the 'freeze' and fix it easily?


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