Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/balloongame.py
diff options
context:
space:
mode:
authorWade Brainerd <wadetb@gmail.com>2009-01-09 02:37:08 (GMT)
committer Wade Brainerd <wadetb@gmail.com>2009-01-09 02:37:08 (GMT)
commit40189fa93e5dcd67abb37a26e0621a817b60a122 (patch)
treeda4954bdb77b1f3092587f59bf7ebdbef7baf280 /balloongame.py
parent41e48409087ba106b58edf22eb6a7cce244f6d5c (diff)
Work on lesson builder, balloon game, lesson screen.
Diffstat (limited to 'balloongame.py')
-rw-r--r--balloongame.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/balloongame.py b/balloongame.py
index a32fe0f..2550a0b 100644
--- a/balloongame.py
+++ b/balloongame.py
@@ -181,7 +181,8 @@ class BalloonGame(gtk.VBox):
if len(self.balloons) == 0 and self.stage_idx >= len(BALLOON_STAGES):
self.finished = True
- self.queue_draw()
+ #self.queue_draw()
+ self.draw()
return True
@@ -231,8 +232,8 @@ class BalloonGame(gtk.VBox):
gc = self.area.window.new_gc()
# Draw background.
- #gc.foreground = self.area.get_colormap().alloc_color(65535,65535,65535)
- #self.area.window.draw_rectangle(gc, True, 0, 0, bounds.width, bounds.height)
+ gc.foreground = self.area.get_colormap().alloc_color(65535,65535,65535)
+ self.area.window.draw_rectangle(gc, True, 0, 0, self.bounds.width, self.bounds.height)
# Draw the balloons.
for b in self.balloons: