diff options
Diffstat (limited to 'tools.py')
-rw-r--r-- | tools.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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) |