TkInter and pygame?

Fredrik Lundh fredrik at pythonware.com
Thu Jul 4 11:25:01 EDT 2002


Markus von Ehr wrote:

> is there a possibility to mix TkInter windows with
> pygame sprites for example?  (in one application)

if pygame allows you to draw in an arbitrary window, you can
use Tkinter's winfo_id() method to get a window handle, and
pass that on to pygame.

tke tkinter3000 framework can make it a bit easier to keep track
of resize and expose events:

    http://effbot.org/zone/tkinter3000-embed.htm

</F>





More information about the Python-list mailing list