Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pyGame within a pyGTK application

What is the best way to use PyGame (SDL) within a PyGTK application?

I'm searching for a method that allows me to have a drawing area in the GTK window and at the same time being able to manage both GTK and SDL events.

like image 398
borrego Avatar asked Aug 25 '08 04:08

borrego


Video Answer


1 Answers

I've never attempted it myself, but hearing plenty about other people who've tried, it's not a road you want to go down.

There is the alternative of putting the gui in pygame itself. There are plenty of gui toolkits built specifically for pygame that you could use. Most of them are rather unfinished, but there are 2 big, actively maintained ones: PGU and OcempGUI. The full list on the pygame site is here.

like image 171
dwestbrook Avatar answered Sep 28 '22 08:09

dwestbrook