[Tutor] Re: Tkinter [pygame with tkinter?]

dominic.fox dominic.fox" <dominic.fox@ntlworld.com
Tue, 16 Jul 2002 21:42:42 +0100


Oh yes, I'd forgotten about pygame. That might be quite handy for
Pyngband...

wxWindows/Python  looks nice - I've just been trying out the demos - it's a
shame my graphics card (ATI Rage Pro 128) doesn't have OpenGL drivers, 'cos
that would be *really* nice. However, after a 30-second glimpse at a couple
of bits of demo source code, it looks as if wxPython *does* do the "get a
device context then draw to it" approach which I wanted to use, so I think
I'll stop and explore here for the moment.

Also, Eric Raymond says it's his favourite...

Dominic
--> Nobody knows the trouble you've seen / walking from your desk to the
staff canteen <--
homepage: http://www.geocities.com/domfox
----- Original Message -----
From: "Danny Yoo" <dyoo@hkn.eecs.berkeley.edu>
To: "dominic.fox" <dominic.fox@ntlworld.com>
Cc: <tutor@python.org>
Sent: Tuesday, July 16, 2002 9:26 PM
Subject: Re: [Tutor] Re: Tkinter [pygame with tkinter?]


>
>
> On Tue, 16 Jul 2002, dominic.fox wrote:
>
> > anyone remembers that) - but even Drawfiles let you plot sprites onto
> > the screen (and, if you knew what to do with a few system calls,
> > manipulate their contents too). It just seems weird to me, having used
> > at least three different platforms* on which it was fairly trivial to
> > plot pixels into a buffer somewhere then blit it onto the screen, that
> > there isn't an obvious and accessible out-of-the-box way to do it in
> > Python.
>
> If all you want is a buffer to draw pixels, then the pygame module might
> be useful:
>
>     http://pygame.org
>
> I've used it for small projects with graphical output, and it's not too
> hard to do sprite manipulation with it.  I don't know how to incorporate a
> pygame buffer with other gui widgets though, but it might be possible.
>
>
> There was a thread about using Pygame's canvas with the rest of the
> Tkinter widgets here:
>
>     http://archives.seul.org/pygame/users/Nov-2001/msg00055.html
>
> and it might be good to bring this question up on the pygame mailing list.
>
>
>
> There's also an article about using Pygame with Tkinter on Deitel and
> Deitel:
>
>
http://www.informit.com/content/index.asp?product_id={10C3A878-BEE8-47C5-942
6-422E8E107D9B}&null
>
> so at least there's some hope of this working... *grin*
>
>
>
> Best of wishes to you!
>