diff options
author | Daniel Francis <francis@sugarlabs.org> | 2012-12-21 14:18:54 (GMT) |
---|---|---|
committer | Daniel Francis <francis@sugarlabs.org> | 2012-12-21 14:18:54 (GMT) |
commit | 9674738abc8984d15b55418e52718ac28669cc7d (patch) | |
tree | fe730b585a78280ece79488c5612698b8e89160b /tools.py | |
parent | eff264857d005719f081eb9fea1e8b099670d395 (diff) |
Activity completely ported to sugargame with no regressions
Signed-off-by: Daniel Francis <francis@sugarlabs.org>
Diffstat (limited to 'tools.py')
-rw-r--r-- | tools.py | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -23,7 +23,6 @@ #================================================================== import pygame import sugargame -import olpcgamesutil from pygame.locals import * from helpers import * from inspect import getmro @@ -56,14 +55,6 @@ class Tool(object): self.game.in_focus = False elif self.game.toolList.has_key(event.action): self.game.setTool(event.action) - elif hasattr(event, "code"): - if event.code == olpcgamesutil.FILE_WRITE_REQUEST: - #Saving to journal - self.game.world.add.remove_mouseJoint() - self.game.world.json_save(event.filename) - elif event.code == olpcgamesutil.FILE_READ_REQUEST: - #Loading from journal - self.game.world.json_load(event.filename) elif event.type == MOUSEBUTTONDOWN and event.button == 1: self.game.canvas.grab_focus() handled = False |