diff options
author | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-09-12 22:23:50 (GMT) |
---|---|---|
committer | Alexandre Antonino Gonçalves Martinazzo <alexandremartinazzo@gmail.com> | 2007-09-12 22:23:50 (GMT) |
commit | 44959deec8d6fd9349ea9a6390ce8389af22a496 (patch) | |
tree | e1e9c7dd40b5c67fd76afd2a8164294a95ee144f /OficinaActivity.py | |
parent | 01cbd87929d18cf495d86ea17a00313efad68249 (diff) |
Many internal changes in palettes; size now is only choosen inside tool palette
User may choose 'line shape' in rainbow effect
All tools are described by dicts, default values adjusted in toolbox.py
Default tool moved to Area.configure_event due to cursor loading problems
'Insert Image' feature is strange: imported image is cleared if selection is NOT moved.
Diffstat (limited to 'OficinaActivity.py')
-rw-r--r-- | OficinaActivity.py | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/OficinaActivity.py b/OficinaActivity.py index 3d54bb3..d5727e0 100644 --- a/OficinaActivity.py +++ b/OficinaActivity.py @@ -83,7 +83,7 @@ class OficinaActivity(activity.Activity): os.chdir(activity.get_bundle_path()) #print activity.get_bundle_path() - self._fixed = gtk.Fixed() + self._fixed = gtk.Fixed() self._area = Area(self) toolbox = Toolbox(self) @@ -123,8 +123,17 @@ class OficinaActivity(activity.Activity): # setting scrolledwindow as activity canvas... self.set_canvas(sw) - # Setting a default tool - self._area.tool = 'pencil' +# # Setting a default tool +# initial_tool = { +# 'name' : 'pencil', +# 'line size' : 2, +# 'fill color' : None, +# 'stroke color' : None, +# 'line shape' : 'circle', +# 'fill' : True, +# 'vertices' : None +# } +# self._area.set_tool(initial_tool) def read_file(self, file_path): '''Read file from Sugar Journal. |