Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/drawing.py
diff options
context:
space:
mode:
authorManuel Quiñones <manuq@laptop.org>2012-03-26 06:24:10 (GMT)
committer Manuel Quiñones <manuq@laptop.org>2012-03-26 06:24:10 (GMT)
commit06a21a37ee1591329039631398923b171d5bef6a (patch)
tree7dc56b44626106fbb905207327bc74029d8e3fdc /drawing.py
parentf922702c98e25127e2a7637b03da0f1cdae5cff7 (diff)
Change stroke width
Signed-off-by: Manuel Quiñones <manuq@laptop.org>
Diffstat (limited to 'drawing.py')
-rw-r--r--drawing.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/drawing.py b/drawing.py
index 729fadd..3e73f6f 100644
--- a/drawing.py
+++ b/drawing.py
@@ -91,6 +91,12 @@ class Drawing(gtk.DrawingArea):
self._paint_stroke(context, stroke_points)
self.queue_draw()
+ def set_stroke_width(self, width):
+ self._settings['stroke width'] = width
+
+ def get_stroke_width(self):
+ return self._settings['stroke width']
+
def clear_drawing_canvas(self):
width, height = self.get_size()
self.setup(width, height)