Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/screenbuil.py
diff options
context:
space:
mode:
Diffstat (limited to 'screenbuil.py')
-rw-r--r--screenbuil.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/screenbuil.py b/screenbuil.py
index 29ed2b7..37121ce 100644
--- a/screenbuil.py
+++ b/screenbuil.py
@@ -18,18 +18,21 @@
### author: Ed Stoner (ed@whsd.net)
### (c) 2007 World Wide Workshop Foundation
-import gtk
+import gi
+from gi.repository import Gtk
import theme
-class Screen(gtk.DrawingArea):
+class Screen(Gtk.DrawingArea):
def __init__(self):
- gtk.DrawingArea.__init__(self)
+ Gtk.DrawingArea.__init__(self)
self.gc = None # initialized in realize-event handler
self.width = 0 # updated in size-allocate handler
self.height = 0 # idem
self.bgpixbuf = None
self.fgpixbuf = None
+ # FIXME: Re escribir
+ '''
self.connect('size-allocate', self.on_size_allocate)
self.connect('expose-event', self.on_expose_event)
self.connect('realize', self.on_realize)
@@ -55,4 +58,4 @@ class Screen(gtk.DrawingArea):
widget.window.draw_pixbuf(self.gc, pixbuf, 0, 0, 0, 0, -1, -1, 0, 0)
def draw(self):
- self.queue_draw()
+ self.queue_draw()'''