[pygtk] PyGame surface in a PyGTK app?

Mark Mruss selsine at gmail.com
Wed Sep 27 22:12:26 WST 2006


Hmm That's an interesting idea Greg.  Originally I would have thought
it possible to simply embed a PyGame surface/Window directly within a
PyGTK app as a custom widget (based on a gtk.DrawgingArea) but I'm
running into drawing issues when trying to do that.

I may try what you are suggesting since I don't necessarily need a
fully functioning PyGame window just one that I can interact with an
add tiles to.

Originally I was going to do this all in PyGame but it felt like I was
rewriting too much of the interface.

Thanks.

mark.

On 9/25/06, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
>
> > I've been fooling around with the idea of displaying a pyGame "screen"
> > in a PyGTK window as a way to make a simple tile editor.
>
> If you can't find a way of embedding a screen, you
> might still be able to use pygame to render into an
> offscreen surface, and then copy its data into a
> pygtk drawing area.


More information about the pygtk mailing list