Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/test/TestActivity.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/TestActivity.py')
-rw-r--r--test/TestActivity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/TestActivity.py b/test/TestActivity.py
index ccc0e35..fcd4262 100644
--- a/test/TestActivity.py
+++ b/test/TestActivity.py
@@ -26,10 +26,11 @@ class TestActivity(sugar.activity.activity.Activity):
# Build the Pygame canvas.
self._pygamecanvas = sugargame.canvas.PygameCanvas(self)
+
# Note that set_canvas implicitly calls read_file when resuming from the Journal.
self.set_canvas(self._pygamecanvas)
- # Start the game running.
+ # Start the game running (self.game.run is called when the activity constructor returns).
self._pygamecanvas.run_pygame(self.game.run)
def build_toolbar(self):
@@ -40,7 +41,6 @@ class TestActivity(sugar.activity.activity.Activity):
toolbar = gtk.Toolbar()
toolbar.insert(stop_play, 0)
- toolbar.insert(gtk.SeparatorToolItem(), 1)
toolbox = sugar.activity.activity.ActivityToolbox(self)
toolbox.add_toolbar(_("Pygame"), toolbar)