Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/OficinaActivity.py
diff options
context:
space:
mode:
authorAlexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-09-19 22:38:16 (GMT)
committer Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com>2007-09-19 22:38:16 (GMT)
commit4ccec296840e319cd359cd2d4a1fca956edba56f (patch)
treee92fe6517cb29323502230de86d1ce4bb39b8e62 /OficinaActivity.py
parent27667997886a22d17f46b946401ffbdf67c4a2c0 (diff)
Squashed commit of the following:
commit f270152cd942d4d48f0c7efe13150f4416d1a888 Author: barbolo <barbolo@e2fb0b9f-bc32-0410-ab74-19e9d00b4e58> 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
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r--OficinaActivity.py10
1 files changed, 3 insertions, 7 deletions
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):