Hi,

Is it possible to embed something made with pygame, like some sort of animated display or bouncing ball... into a Tkinter made window, with tkinter buttons/frames etc...
If yes, then may you please tell me how can i do that?

Thanks

Recommended Answers

All 2 Replies

if you want to display a bouncing ball or something simple the tkinter library uses .gif images, so you could create a gif of that if you absoulutly need it to be made in Pygame i cant help you there.

You can use certain pygame modules like the pygame mixer with Tkinter to play sounds.
However, IMHO for the application you want to use the pygame and the Tkinter event loops will clash.
You may have to use module threading to make this go.

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.