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

[pygame] interaction with Tkinter



Hi,

I've been tracking down what I think is a bug. I haven't delved into the 
internals of pygame yet, but after pygame has opened the display and 
then quit, Tkinter doesn't work properly. In the following example, 
Tkinter doesn't draw anything visible on the screen, enters "mainloop", 
and then never exits (until control-c).  This happens on win32 (windows 
200 pro) and mac os x, but it works fine on linux.  Here's a simple 
program which exhibits the bug:

#=======================================
#!/usr/bin/env python
import pygame, pygame.locals
import Tkinter

pygame.display.set_mode( (640,480), 0 ,0 )
pygame.quit()

f = Tkinter.Frame()
f.pack()
Tkinter.Button(f,text="quit",command=f.master.destroy).pack()
f.mainloop()
#=======================================

If I remove the pygame calls, the Tkinter stuff works fine.

Any suggestions?

Andrew

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