diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-12-21 01:53:07 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-12-21 01:53:07 (GMT) |
commit | e447f92baa4727b9fa246f2282f68803ee0e0c69 (patch) | |
tree | aec2811a16712613702aca82e2b4e597a132eecd /tools.py | |
parent | bcf8fc6694df68e0d44b8060dff14878549ae1f4 (diff) |
All the files
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'tools.py')
-rw-r--r-- | tools.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: |