diff options
author | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-09-12 15:30:53 (GMT) |
---|---|---|
committer | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-09-12 15:30:53 (GMT) |
commit | 01cbd87929d18cf495d86ea17a00313efad68249 (patch) | |
tree | 6ac59d40ac3f0a81b46e9537fbdd4340bd1665c2 /OficinaActivity.py | |
parent | 5e07389d79dbb25ecb819a89550e2a087a840c6a (diff) |
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)
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r-- | OficinaActivity.py | 21 |
1 files changed, 9 insertions, 12 deletions
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') |