We're a community of 1076K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,075,627 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

pygame in tkinter

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

3
Contributors
2
Replies
1 Day
Discussion Span
5 Months Ago
Last Updated
3
Views
slasel
Newbie Poster
19 posts since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

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.

epicSHOOTER236
Newbie Poster
9 posts since Nov 2012
Reputation Points: 0
Solved Threads: 2
Skill Endorsements: 0

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.

vegaseat
DaniWeb's Hypocrite
Moderator
6,464 posts since Oct 2004
Reputation Points: 1,447
Solved Threads: 1,608
Skill Endorsements: 34

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0600 seconds using 2.71MB