Hello,

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?

Thanks
a1eio

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.