Add support for "only" in the move param of .partsMatrix()

This commit is contained in:
Florian Festi 2017-04-19 19:48:38 +02:00
parent 9bf9922d28
commit 07ede0a5c5
1 changed files with 2 additions and 0 deletions

View File

@ -1527,6 +1527,8 @@ class Boxes:
for i in range(rows): for i in range(rows):
self.ctx.save() self.ctx.save()
for j in range(width): for j in range(width):
if "only" in move:
break
if width*i+j >= n: if width*i+j >= n:
break break
kw["move"] = "right" kw["move"] = "right"