Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tools.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools.py')
-rw-r--r--tools.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools.py b/tools.py
index adb08ff..358e1fe 100644
--- a/tools.py
+++ b/tools.py
@@ -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