From 18019ab53d9dea5d5402a19a59f1868bc3a7dcda Mon Sep 17 00:00:00 2001 From: Alexandre Antonino Gonçalves Martinazzo Date: Mon, 08 Oct 2007 21:44:11 +0000 Subject: Fitting canvas to usable area (See ticket #3689) --- (limited to 'OficinaActivity.py') diff --git a/OficinaActivity.py b/OficinaActivity.py index ace8e12..a77381d 100644 --- a/OficinaActivity.py +++ b/OficinaActivity.py @@ -65,9 +65,7 @@ from Area import Area import logging class OficinaActivity(activity.Activity): - def oficina(self, widget, data=None): - logging.info('Oficina') - + def __init__(self, handle): """Initialize the OficinaActivity object. @@ -99,18 +97,18 @@ class OficinaActivity(activity.Activity): color = gtk.gdk.color_parse("white") self.fixed.modify_bg(gtk.STATE_NORMAL, color) - self._bg = gtk.Image() - self._bg.set_from_file('./icons/bg.svg') - self.fixed.put(self._bg, 200, 100) - self._bg.show + #self._bg = gtk.Image() + #self._bg.set_from_file('./icons/bg.svg') + #self.fixed.put(self._bg, 200, 100) + #self._bg.show self.textview = gtk.TextView() # If we use this, text viewer will have constant size, we don't want that #self.textview.set_size_request(100,100) - self.fixed.put(self.area, 200 , 100) + #self.fixed.put(self.area, 200 , 100) # Area size increased - #self.fixed.put(self.area, 0 , 0) + self.fixed.put(self.area, 0 , 0) sw.add_with_viewport(self.fixed) self.area.show() -- cgit v0.9.1