diff options
Diffstat (limited to 'Gambiarra/gamemenu.py')
-rw-r--r-- | Gambiarra/gamemenu.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Gambiarra/gamemenu.py b/Gambiarra/gamemenu.py index 2945b98..55d838e 100644 --- a/Gambiarra/gamemenu.py +++ b/Gambiarra/gamemenu.py @@ -19,8 +19,8 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -import os.path - +import os +import gtk import pygame class GameMenu(object): @@ -65,6 +65,9 @@ class GameMenu(object): def event_handler(self): while True: + #GTK events + while gtk.events_pending(): + gtk.main_iteration() for event in pygame.event.get(): if event.type == pygame.MOUSEMOTION: img = self.start.current_img |