Python Forum
[PyGame] Using Pygame within Tkinter GUI
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[PyGame] Using Pygame within Tkinter GUI
#1
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!
Reply
#2
Here's an example, can't vouch for it: http://grapevine.com.au/~wisteria/tkfron...inter.html
Reply
#3
Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pygame vs TKinter for a Quiz Game? SteampunkMaverick12 1 4,735 May-21-2018, 05:31 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020