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 /Desenho.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 'Desenho.py')
-rw-r--r-- | Desenho.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -499,13 +499,13 @@ class Desenho: widget.oldy = coords[1] widget.queue_draw() - def clear(self): + def clear(self, widget): """Clear the drawing. @param self -- Desenho.Desenho instance - + @param widget -- Area object (GtkDrawingArea) """ - width, height = self.d.window.get_size() + width, height = widget.window.get_size() widget.desenho = [] widget.textos = [] widget.pixmap.draw_rectangle(widget.get_style().white_gc, True,0, 0, width, height) |