Pygame and TKinter

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lane LiaBraaten

    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

  • Lee Harr

    #2
    Re: Pygame and TKinter

    > I need buttons, text inputs, and scrolling text output. All I've found is the[color=blue]
    > 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?
    >[/color]

    Savannah is a central point for development, distribution and maintenance of free software, both GNU and non-GNU.


    Comment

    • email9898989@yahoo.com

      #3
      Re: Pygame and TKinter

      Lane LiaBraaten <lliabraa@isrpa rc.org> wrote in message news:<mailman.1 85.1067368262.7 02.python-list@python.org >...[color=blue]
      > 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.[/color]

      See this page for how to do that in WxPython:


      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).

      Comment

      Working...