From 3dfd99c68ac0cec255b3f1444c7b8ca372ed86e1 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Thu, 30 Nov 2017 22:39:58 +0100 Subject: [PATCH] Rename method to not collide with new description property --- boxes/generators/drillbox.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/generators/drillbox.py b/boxes/generators/drillbox.py index 26d2f86..ad602c3 100644 --- a/boxes/generators/drillbox.py +++ b/boxes/generators/drillbox.py @@ -41,7 +41,7 @@ in 0.5mm steps, 3 holes each size""" r = (12.5 - 2 * i - 0.5 * j) * 0.5 self.hole(i * 20 + 10, j * 60 + k * 20 + 10, r + 0.05) - def description(self): + def descriptionText(self): self.ctx.set_font_size(6) for i in range(4): for j in range(6): @@ -64,7 +64,7 @@ in 0.5mm steps, 3 holes each size""" self.rectangularWall(x, y, "ffff", move="up") self.rectangularWall(x, y, "ffff", callback=[self.drillholes], move="up") - self.rectangularWall(x, y, "ffff", callback=[self.drillholes, self.description], move="up") + self.rectangularWall(x, y, "ffff", callback=[self.drillholes, self.descriptionText], move="up") self.close()