From a96a78f439dc9d6034dfd28df9dc1d5b9682aaa3 Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 15 Feb 2023 21:47:53 +0100 Subject: [PATCH] cc(): Add angle parameter to allow placing the callbacks truly everywhere --- boxes/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boxes/__init__.py b/boxes/__init__.py index f5ab9c9..155bd68 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -657,7 +657,7 @@ class Boxes: raise NotImplementedError self.close() - def cc(self, callback, number, x=0.0, y=None): + def cc(self, callback, number, x=0.0, y=None, a=0.0): """Call callback from edge of a part :param callback: callback (callable or list of callables) @@ -677,7 +677,7 @@ class Boxes: if callback and callable(callback): with self.saved_context(): - self.moveTo(x, y) + self.moveTo(x, y, a) if number is None: callback() else: