Add support for (angle, radius) tuples as param of polyline

This commit is contained in:
Florian Festi 2016-05-25 19:29:35 +02:00
parent 60b12f821e
commit 1425d730f5
1 changed files with 6 additions and 2 deletions

View File

@ -458,12 +458,16 @@ class Boxes:
""" """
Draw multiple connected lines Draw multiple connected lines
:param \*args: Alternating length in mm and angle :param \*args: Alternating length in mm and angle. angle may be tuple
(angle, radius)
""" """
for i, arg in enumerate(args): for i, arg in enumerate(args):
if i % 2: if i % 2:
self.corner(arg) if isinstance(arg, tuple):
self.corner(*arg)
else:
self.corner(arg)
else: else:
self.edge(arg) self.edge(arg)