Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
authorDaniel Francis <francis@sugarlabs.org>2012-12-21 01:53:07 (GMT)
committer Daniel Francis <francis@sugarlabs.org>2012-12-21 01:53:07 (GMT)
commite447f92baa4727b9fa246f2282f68803ee0e0c69 (patch)
treeaec2811a16712613702aca82e2b4e597a132eecd /tools.py
parentbcf8fc6694df68e0d44b8060dff14878549ae1f4 (diff)
All the files
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools.py b/tools.py
index fb118fc..c03130f 100644
--- a/tools.py
+++ b/tools.py
@@ -22,7 +22,7 @@
# By Alex Levenson
#==================================================================
import pygame
-import olpcgames
+import sugargame
from pygame.locals import *
from helpers import *
from inspect import getmro
@@ -56,11 +56,11 @@ class Tool(object):
elif self.game.toolList.has_key(event.action):
self.game.setTool(event.action)
elif hasattr(event, "code"):
- if event.code == olpcgames.FILE_WRITE_REQUEST:
+ if event.code == sugargame.FILE_WRITE_REQUEST:
#Saving to journal
self.game.world.add.remove_mouseJoint()
self.game.world.json_save(event.filename)
- elif event.code == olpcgames.FILE_READ_REQUEST:
+ elif event.code == sugargame.FILE_READ_REQUEST:
#Loading from journal
self.game.world.json_load(event.filename)
elif event.type == MOUSEBUTTONDOWN and event.button == 1: