Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dialogs.py
diff options
context:
space:
mode:
authorGonzalo Odiard <godiard@sugarlabs.org>2014-04-11 01:40:06 (GMT)
committer Gonzalo Odiard <godiard@gmail.com>2014-05-14 21:21:40 (GMT)
commitdd749da6fdc05374ee656762f6c34d2c52ca6779 (patch)
treea49013aacb60e79f2298e4f42f2ed31ce6de6133 /dialogs.py
parent1394eb71f8e677990ca26d3be4e1fb1af708f950 (diff)
More import fixes
Diffstat (limited to 'dialogs.py')
-rw-r--r--dialogs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dialogs.py b/dialogs.py
index 240e51c..cd4eb0b 100644
--- a/dialogs.py
+++ b/dialogs.py
@@ -16,10 +16,11 @@
from gettext import gettext as _
import os
import random
-import logging
from gi.repository import GObject
from gi.repository import Gtk
+from gi.repository import Gdk
+from gi.repository import GdkPixbuf
from gi.repository import WebKit
from sugar3.graphics import style
@@ -37,7 +38,6 @@ class _DialogWindow(Gtk.Window):
super(_DialogWindow, self).__init__()
self.set_border_width(style.LINE_WIDTH)
- offset = style.GRID_CELL_SIZE
width = Gdk.Screen.width() - style.GRID_CELL_SIZE * 2
height = Gdk.Screen.height() - style.GRID_CELL_SIZE * 2
self.set_size_request(width, height)
@@ -129,7 +129,7 @@ class ResourceDialog(_DialogWindow):
vbox.pack_start(image, False, padding=5)
image.set_from_file(resource['file_image'])
- editor = webkit.WebView()
+ editor = WebKit.WebView()
editor.set_editable(False)
height = int(Gdk.Screen.height() / 3)
editor.set_size_request(-1, height)