Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Desenho.py
diff options
context:
space:
mode:
Diffstat (limited to 'Desenho.py')
-rw-r--r--Desenho.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/Desenho.py b/Desenho.py
index 4f8f196..cb0a11e 100644
--- a/Desenho.py
+++ b/Desenho.py
@@ -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.