views:

268

answers:

3

Are there any good GUIs that support pygame surfaces as a widget within the application?

If this isn't possible or practical, what GUI toolkit has the best graphics component? I'm looking to keep the speedy rendering made possible by a SDL wrapper.

+1  A: 

Best GUI toolkit in my opinions is wxPython (a binding for wxWidgets) which has GUI widgets for practically everything including an OpenGL widget and some work has been done with SDL as well - here.

Sorry, didn't read the question very clearly. wxPython/pygame integration is described here K

Kev
+1  A: 

Take a look at Albow, PGU or Ocemp.

Brandon Corfman
+2  A: 

Dont use wxPython, its very hard to get to work well with Pygame, as described over at the GUI section of the Pygame wiki.

First of all, pygame relies on the SDL, which means that it can only have one window at a time. Thus, trying to implement multiple Gtk, Qt, ... application instances that use pygame, is an impossibility. The second problematic reason is that those toolkits use their own main loop, which possibly forces you to pipe their events to your pygame instance and vice versa. And to mention some other points in short: Drawing the toolkit elements on the pygame window is impossible and the SDL/pygame fullscreen mode will be problematic.

Instead, opt for any of the libraries listed at the bottom of that page. I use pgu myself.

mizipzor