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, 5 insertions, 4 deletions
diff --git a/tools.py b/tools.py
index af515b8..b92ed1e 100644
--- a/tools.py
+++ b/tools.py
@@ -2,6 +2,7 @@
"""
Physics, a 2D Physics Playground for Kids
Copyright (C) 2008 Alex Levenson and Brian Jordan
+ Copyright (C) 2013 Ignacio Rodriguez
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -28,8 +29,8 @@ from pygame.locals import *
from helpers import *
from inspect import getmro
from gettext import gettext as _
-from sugar.graphics.alert import ConfirmationAlert
-import gtk
+from sugar3.graphics.alert import ConfirmationAlert
+from gi.repository import Gtk
# Tools that can be superlcassed
@@ -658,9 +659,9 @@ class EraseAllTool(Tool):
def alert_info(self, alert, response_id, event):
self.activity.remove_alert(alert)
- if response_id is gtk.RESPONSE_OK:
+ if response_id is Gtk.ResponseType.OK:
self.response_alert = True
- elif response_id is gtk.RESPONSE_CANCEL:
+ elif response_id is Gtk.ResponseType.CANCEL:
self.response_alert = False
self.handleToolEvent(event, True)