Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/infoslicer/widgets/Image_Pane.py
diff options
context:
space:
mode:
Diffstat (limited to 'infoslicer/widgets/Image_Pane.py')
-rw-r--r--infoslicer/widgets/Image_Pane.py30
1 files changed, 14 insertions, 16 deletions
diff --git a/infoslicer/widgets/Image_Pane.py b/infoslicer/widgets/Image_Pane.py
index 473253c..99026f0 100644
--- a/infoslicer/widgets/Image_Pane.py
+++ b/infoslicer/widgets/Image_Pane.py
@@ -1,9 +1,7 @@
# Copyright (C) IBM Corporation 2008
-import gi
-gi.require_version('Gtk', '3.0')
-from gi.repository import Gtk
-from gi.repository import Gdk
-from gi.repository import GObject
+import pygtk
+pygtk.require('2.0')
+import gtk
import logging
from gettext import gettext as _
@@ -13,7 +11,7 @@ from infoslicer.processing.Article import Article
logger = logging.getLogger('infoslicer')
-class Image_Pane(Gtk.HBox):
+class Image_Pane(gtk.HBox):
"""
Created by Christopher Leonard
@@ -25,29 +23,29 @@ class Image_Pane(Gtk.HBox):
"""
def __init__(self):
- GObject.GObject.__init__(self)
+ gtk.HBox.__init__(self)
self.toolitems = []
- gallery_box = Gtk.VBox()
+ gallery_box = gtk.VBox()
gallery_box.show()
- labeleb = Gtk.EventBox()
- labeleb.modify_bg(Gtk.StateType.NORMAL, Gdk.color_parse("#EEEEEE"))
+ labeleb = gtk.EventBox()
+ labeleb.modify_bg(gtk.STATE_NORMAL, gtk.gdk.color_parse("#EEEEEE"))
gallery_box.pack_start(labeleb, False, False, 0)
labeleb.show()
- self.articletitle = Gtk.Label()
- self.articletitle.set_justify(Gtk.Justification.CENTER)
+ self.articletitle = gtk.Label()
+ self.articletitle.set_justify(gtk.JUSTIFY_CENTER)
labeleb.add(self.articletitle)
self.articletitle.show()
self.gallery = Gallery_View()
- self.gallery.set_size_request(Gdk.Screen.width()/2, -1)
- gallery_box.pack_start(self.gallery, True, True, 0)
+ self.gallery.set_size_request(gtk.gdk.screen_width()/2, -1)
+ gallery_box.pack_start(self.gallery)
- self.pack_start(gallery_box, False, False, 0)
+ self.pack_start(gallery_box, False)
self.editarticle = Editing_View()
- self.pack_start(self.editarticle, True, True, 0)
+ self.pack_start(self.editarticle)
self.editarticle.show_all()
self.gallery._source_article = None