From 9fb6e85ad96a3e29e7aaaef49b98427ff4386f79 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Sat, 20 Jul 2013 17:47:18 +0200 Subject: [PATCH] Use r in the handle instead of hard coded value --- boxes.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/boxes.py b/boxes.py index 3085f9c..b757f99 100755 --- a/boxes.py +++ b/boxes.py @@ -553,7 +553,7 @@ class Boxes: else: self.corner(90) - def handle(self, x, h, hl, r=20): + def handle(self, x, h, hl, r=30): """Creates and Edge with a handle""" d = (x-hl-2*r)/2.0 if d < 0: @@ -562,14 +562,14 @@ class Boxes: self.ctx.save() # Hole - self.moveTo(d+20+r, 0) + self.moveTo(d+2*r, 0) self.edge(hl-2*r) self.corner(-90, r) - self.edge(h-20-2*r) + self.edge(h-3*r) self.corner(-90, r) self.edge(hl-2*r) self.corner(-90, r) - self.edge(h-20-2*r) + self.edge(h-3*r) self.corner(-90, r) self.ctx.restore()