diff options
author | Gonzalo Odiard <godiard@sugarlabs.org> | 2014-04-11 01:40:06 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2014-05-14 21:21:40 (GMT) |
commit | dd749da6fdc05374ee656762f6c34d2c52ca6779 (patch) | |
tree | a49013aacb60e79f2298e4f42f2ed31ce6de6133 /resources.py | |
parent | 1394eb71f8e677990ca26d3be4e1fb1af708f950 (diff) |
More import fixes
Diffstat (limited to 'resources.py')
-rw-r--r-- | resources.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/resources.py b/resources.py index 28cfddf..db22557 100644 --- a/resources.py +++ b/resources.py @@ -1,4 +1,6 @@ from gi.repository import Gtk +from gi.repository import Gdk +from gi.repository import GdkPixbuf from gi.repository import GObject from gi.repository import WebKit import logging @@ -7,17 +9,14 @@ import shutil from gettext import gettext as _ -from gobject import SIGNAL_RUN_FIRST - from sugar3.activity import activity -from sugar3.graphics.icon import Icon from sugar3.graphics.objectchooser import ObjectChooser class CollectResourcesWin(Gtk.HBox): __gsignals__ = { - 'resource_updated': (SIGNAL_RUN_FIRST, None, []) + 'resource_updated': (GObject.SignalFlags.RUN_FIRST, None, []) } def __init__(self, activity): @@ -110,7 +109,7 @@ class CollectResourcesWin(Gtk.HBox): vbox_image.pack_start(scrolled, True, padding=5) #hbox_editor = Gtk.HBox() - self.editor = webkit.WebView() + self.editor = WebKit.WebView() self.title_entry.connect('changed', self.__information_changed_cb) self.editor.set_editable(True) |