From 07ede0a5c51ef08e7958122fd5de3d09c80afddf Mon Sep 17 00:00:00 2001 From: Florian Festi Date: Wed, 19 Apr 2017 19:48:38 +0200 Subject: [PATCH] Add support for "only" in the move param of .partsMatrix() --- boxes/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/boxes/__init__.py b/boxes/__init__.py index f098046..6761be2 100755 --- a/boxes/__init__.py +++ b/boxes/__init__.py @@ -1527,6 +1527,8 @@ class Boxes: for i in range(rows): self.ctx.save() for j in range(width): + if "only" in move: + break if width*i+j >= n: break kw["move"] = "right"