467,122 Members | 1,258 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,122 developers. It's quick & easy.

Pygame and TKinter

Does anyone know a way to insert a pygame surface into a tkinter gui?
I am writing a program similar to a mpeg player, i.e. i need the mpeg playing
capabilities of pygame and the gui stuff from tkinter.

TIA,
LGL

Jul 18 '05 #1
  • viewed: 4497
Share:
2 Replies
> I need buttons, text inputs, and scrolling text output. All I've found is the
text input from the pygame code repository site. Rather than make my own
widgets I am planning to have one window for the mpeg viewer and one for the
rest of the GUI (although one window would be better).

Can you point me to any source code for buttons, or a scrolling textbox?


http://savannah.nongnu.org/projects/pygsear/

Jul 18 '05 #2
Lane LiaBraaten <ll******@isrparc.org> wrote in message news:<ma************************************@pytho n.org>...
Does anyone know a way to insert a pygame surface into a tkinter gui?
I am writing a program similar to a mpeg player, i.e. i need the mpeg pla
ying
capabilities of pygame and the gui stuff from tkinter.


See this page for how to do that in WxPython:
http://wiki.wxpython.org/index.cgi/IntegratingPyGame

To translate that code to Tkinter, you would use frame.winfo_id() to
get the window handle instead of wxpython's GetHandle().

But these are both basically just hacks. Options for multimedia
playing/editing are slim in python. You might use Java instead (see
jython), using either the java media framework or quicktime for java
(latter doesn't work on Linux).
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Kathleen Kudzma | last post: by
reply views Thread by schwerdy | last post: by
5 posts views Thread by Andr? Roberge | last post: by
12 posts views Thread by Marian Aldenhövel | last post: by
3 posts views Thread by Tim Knauf | last post: by
2 posts views Thread by PatrickMinnesota | last post: by
3 posts views Thread by globalrev | last post: by
reply views Thread by Nick Dumas | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.