diff options
author | Sayamindu Dasgupta <sayamindu@gmail.com> | 2008-09-09 14:24:36 (GMT) |
---|---|---|
committer | Morgan Collett <morgan.collett@gmail.com> | 2008-09-09 15:10:26 (GMT) |
commit | 8cef4eb4bbcf8e4beb68d8c4e54832618cc712de (patch) | |
tree | 6324d217355422cf7b54baa22327fbbdd7ae53cb /Desenho.py | |
parent | a71d8f0c45a4aebb7991a7550f49a2087b356c33 (diff) |
Make pencil tool use the brush (partial workaround for #8285)
Diffstat (limited to 'Desenho.py')
-rw-r--r-- | Desenho.py | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -471,22 +471,6 @@ class Desenho: pixmap.draw_arc(widget.gc_line,False,x,y,dx,dy,0,360*64) widget.queue_draw() - - def pencil(self, widget, coords): - """Draw a pencil. - - @param self -- Desenho.Desenho instance - @param widget -- Area object (GtkDrawingArea) - @param coords -- Two value tuple - - """ - width, height = widget.window.get_size() - widget.pixmap_temp.draw_drawable(widget.gc,widget.pixmap, 0 , 0 ,0,0, width, height) - widget.pixmap.draw_line(widget.gc_line,widget.oldx,widget.oldy,coords[0],coords[1]) - widget.oldx = coords[0] - widget.oldy = coords[1] - widget.queue_draw() - def clear(self, widget): """Clear the drawing. |