diff options
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 |