I was wondering whether it was possible to embed something made with pygame, like some sort of animated display or bouncing ball whatever, into a Tkinter made window, with tkinter buttons/frames etc...

Anybody heard of this or know of if it can be done?


Yes, it can be done, but I've never done it...

The toplevel window needs to have the -container flag and -use for the window ID of the SDL window.

However, PyGame wasn't really designed to coexist with other toolkits. See Why Gtk/Qt/WxWidgets... are bad.

Hope this helps.

thanks a bunch, i'll look into it.