Python Forum

Full Version: Using Pygame within Tkinter GUI
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have been having fun coding small 'games' for my children, for practice, and I have been using Tkinter for my GUI. All of my 'games' have been written in Python/Tkinter so far, and they are simple 'games' where you press buttons to get things done.

I want to try to move to the next level, and use PyGame, so that the 'games' can involve moving characters around and shooting. I tried coding some stuff, and it is working all right.

My main question is: Can I combine the two? For example, can I make a program that uses Tkinter open a new window that would contain a game written with PyGame in it? Is there some sample code I could see? I tried searching, and I cannot find anything.

Thank you for the help!
Here's an example, can't vouch for it: http://grapevine.com.au/~wisteria/tkfron...inter.html
Thank you!