Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/game.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2014-04-11 00:58:35 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-05-14 21:21:40 (GMT)
commit1394eb71f8e677990ca26d3be4e1fb1af708f950 (patch)
tree6d4740b8ad9ceabc090d45c52f9342c4cd3aa966 /game.py
parent3b2c6fa2d075bd77f22202fdacd480b6dcd26f9b (diff)
Port to Gtk3: Initial run of py-giconvert.sh and sugar-convert.sh
Diffstat (limited to 'game.py')
-rwxr-xr-xgame.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/game.py b/game.py
index 4440f33..f18ec33 100755
--- a/game.py
+++ b/game.py
@@ -5,7 +5,7 @@ import math
import simplejson as json
import pygame
-import gtk
+from gi.repository import Gtk
DATA_DIR = 'images'
STROKE_COLOR = 0, 0, 0 # black
@@ -368,8 +368,8 @@ class Game(object):
self._clock.tick(FRAMES_PER_SECOND)
# pump gtk messages
- while gtk.events_pending():
- gtk.main_iteration()
+ while Gtk.events_pending():
+ Gtk.main_iteration()
# pump pygame messages
for event in pygame.event.get():