diff options
author | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-10-08 21:44:11 (GMT) |
---|---|---|
committer | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-10-08 21:44:11 (GMT) |
commit | 18019ab53d9dea5d5402a19a59f1868bc3a7dcda (patch) | |
tree | 10753f7793198ae796bbbaafca4bd8521d48fa92 /OficinaActivity.py | |
parent | 5f31d0ff9cb4db48a18310fb8802834053b02157 (diff) |
Fitting canvas to usable area (See ticket #3689)
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r-- | OficinaActivity.py | 16 |
1 files changed, 7 insertions, 9 deletions
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() |