From 4ccec296840e319cd359cd2d4a1fca956edba56f Mon Sep 17 00:00:00 2001 From: Alexandre Antonino Gonçalves Martinazzo Date: Wed, 19 Sep 2007 22:38:16 +0000 Subject: Squashed commit of the following: commit f270152cd942d4d48f0c7efe13150f4416d1a888 Author: barbolo Date: Wed Sep 19 18:52:11 2007 +0000 Resizeing fixed! Toolbox done! git-svn-id: https://oficina.googlecode.com/svn/trunk@113 e2fb0b9f-bc32-0410-ab74-19e9d00b4e58 --- (limited to 'OficinaActivity.py') diff --git a/OficinaActivity.py b/OficinaActivity.py index 08355c2..d823b16 100644 --- a/OficinaActivity.py +++ b/OficinaActivity.py @@ -98,12 +98,12 @@ 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.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) @@ -115,15 +115,12 @@ class OficinaActivity(activity.Activity): sw.add_with_viewport(self.fixed) self.area.show() self.fixed.show() - - self.fixed.put(self.textview, 0, 0) self.textview.hide() sw.show() # setting scrolledwindow as activity canvas... self.set_canvas(sw) - def read_file(self, file_path): '''Read file from Sugar Journal. @@ -136,7 +133,6 @@ class OficinaActivity(activity.Activity): # logging.debug(file_path) self.area.loadImage(file_path, self.area, False) - def write_file(self, file_path): -- cgit v0.9.1