From 22f961c8ce41ee60b98aaa7a4f080749b38d51ea Mon Sep 17 00:00:00 2001 From: leyghisbb Date: Sun, 30 Aug 2020 11:25:52 +0200 Subject: [PATCH] removed old syntax --- extensions/fablabchemnitz_boxmaker.py | 4 ++-- extensions/fablabchemnitz_delete_above.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/extensions/fablabchemnitz_boxmaker.py b/extensions/fablabchemnitz_boxmaker.py index 9c940080..55f60371 100644 --- a/extensions/fablabchemnitz_boxmaker.py +++ b/extensions/fablabchemnitz_boxmaker.py @@ -72,7 +72,7 @@ def getLine(XYstring): line = inkex.PathElement() line.style = { 'stroke': '#000000', 'stroke-width' : str(linethickness), 'fill': 'none' } line.path = XYstring - #inkex.etree.SubElement(parent, inkex.addNS('path','svg'), drw) + #etree.SubElement(parent, inkex.addNS('path','svg'), drw) return line # jslee - shamelessly adapted from sample code on below Inkscape wiki page 2015-07-28 @@ -636,4 +636,4 @@ class BoxMaker(inkex.Effect): side(group,(x+dx,y+dy),(-b,-c),(d,-c),keydivwalls*ctabs*(thickness if c else -thickness),dx,(-1,0),c,1,0,0) # side c side(group,(x,y+dy),(d,-c),(d,a),keydivfloor*dtabs*(-thickness if d else thickness),dy,(0,-1),d,1,0,0) # side d -BoxMaker().run() \ No newline at end of file +BoxMaker().run() diff --git a/extensions/fablabchemnitz_delete_above.py b/extensions/fablabchemnitz_delete_above.py index c238ca93..a0c5f3b6 100644 --- a/extensions/fablabchemnitz_delete_above.py +++ b/extensions/fablabchemnitz_delete_above.py @@ -120,4 +120,4 @@ if __name__ == '__main__': FMT = PPRINTER.pformat DUMP = lambda obj: inkex.debug(FMT(obj)) - DeleteAboveEffect().run() + DeleteAboveEffect().run() \ No newline at end of file