From 01cbd87929d18cf495d86ea17a00313efad68249 Mon Sep 17 00:00:00 2001 From: Alexandre Antonino Gonçalves Martinazzo Date: Wed, 12 Sep 2007 15:30:53 +0000 Subject: Bug #3320 fixed; Default tab now is 'Tools' MANIFEST file updated Merging with other commits (at svn): - Updated translations files (nathalia.sautchuk) - adding greek name of the activity (nathalia.sautchuk) - adding greek and arabic translations (nathalia.sautchuk) - resize func is changed, work better but pixmaps are confused , Andre knows more about this (pekayatt) - New coments standard with doxygen compatibility (pekayatt) --- (limited to 'OficinaActivity.py') diff --git a/OficinaActivity.py b/OficinaActivity.py index 6e9dea7..3d54bb3 100644 --- a/OficinaActivity.py +++ b/OficinaActivity.py @@ -65,12 +65,14 @@ 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. - Keyword arguments: - self -- - handle -- + @param self + @param handle """ activity.Activity.__init__(self, handle) @@ -101,11 +103,9 @@ class OficinaActivity(activity.Activity): self._fixed.put(self.bg, 200, 100) self.bg.show() - #FIXME: use a textview instead of an Entry 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._textview = gtk.Entry() self._fixed.put(self._area, 200 , 100) # Area size increased @@ -129,8 +129,8 @@ class OficinaActivity(activity.Activity): def read_file(self, file_path): '''Read file from Sugar Journal. - self -- - file_path -- + @param self + @param file_path ''' logging.debug('reading file %s', file_path) @@ -138,16 +138,13 @@ class OficinaActivity(activity.Activity): self._area.loadImage(file_path, self._area, False) - # Does this work? -# self._area.undo_times = 1 -# self._area.redo_times = 0 def write_file(self, file_path): '''Save file on Sugar Journal. - self -- - file_path -- + @param self + @param file_path ''' logging.debug('saving as PNG') -- cgit v0.9.1