diff options
Diffstat (limited to 'Desenho.py')
-rw-r--r-- | Desenho.py | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -128,6 +128,21 @@ class Desenho: widget.desenha = False self._trace(widget, widget.gc_brush, coords, last, size, shape) + def stamp(self, widget, coords, last, size=5): + """Paint with stamp. + + @param self -- Desenho.Desenho instance + @param last -- last of oldx + @param widget -- Area object (GtkDrawingArea) + @param coords -- Two value tuple + @param size -- integer (default 30) + + """ + widget.desenha = False + # TODO, this is a fake, not stamping at the moment: + size = 40 + self._trace(widget, widget.gc_brush, coords, last, size, 'square') + def rainbow(self, widget, coords, last, color, size=5, shape='circle'): """Paint with rainbow. |