CardBox: Add gripping ledge to the lid

This commit is contained in:
Florian Festi 2018-12-11 19:33:52 +01:00
parent 4d2592fecf
commit 4a79c37e71
1 changed files with 4 additions and 2 deletions

View File

@ -116,7 +116,7 @@ class CardBox(Boxes):
self.ctx.save() self.ctx.save()
# Lid # Lid
self.rectangularWall(x-t*.2, y+t, "eeee", move="right") self.rectangularWall(x-t*.2, y, "Feee", move="right")
# Bottom # Bottom
self.rectangularWall(x, y, "ffff", callback=[self.divider_bottom], self.rectangularWall(x, y, "ffff", callback=[self.divider_bottom],
move="right") move="right")
@ -136,7 +136,9 @@ class CardBox(Boxes):
self.ctx.restore() self.ctx.restore()
self.rectangularWall(x, h, "EEEE", move="up only") self.rectangularWall(x, h, "EEEE", move="up only")
self.ctx.save()
#lip of the lid
self.rectangularWall(x-t*.2, t, "fEeE", move="up")
# Outer sides # Outer sides
self.rectangularWall(h, y, "fFfF", move="right") self.rectangularWall(h, y, "fFfF", move="right")