DividerTray: Add Labels

This commit is contained in:
suks.ae 2022-06-16 17:42:59 +02:00 committed by Florian Festi
parent 16e7175c07
commit 00ab597773
1 changed files with 5 additions and 5 deletions

View File

@ -162,7 +162,7 @@ class DividerTray(Boxes):
side_edge(self.left_wall), side_edge(self.left_wall),
], ],
callback=[partial(self.generate_finger_holes, self.h)], callback=[partial(self.generate_finger_holes, self.h)],
move="up", move="up", label = "Front" if _ else "Back",
) )
# Side walls (outer & inner) with slots to support dividers # Side walls (outer & inner) with slots to support dividers
@ -174,13 +174,13 @@ class DividerTray(Boxes):
be = "f" if self.bottom else "e" be = "f" if self.bottom else "e"
se = DividerSlotsEdge(self, slot_descriptions.descriptions) se = DividerSlotsEdge(self, slot_descriptions.descriptions)
self.rectangularWall( self.rectangularWall(
side_wall_length, self.h, [be, "f", se, "f"], move="up" side_wall_length, self.h, [be, "f", se, "f"], move="up", label="Sidepiece " + str(_ + 1)
) )
# Switch to right side of the file # Switch to right side of the file
self.ctx.restore() self.ctx.restore()
self.rectangularWall( self.rectangularWall(
max(facing_wall_length, side_wall_length), self.h, "ffff", move="right only" max(facing_wall_length, side_wall_length), self.h, "ffff", move="right only", label="invisible"
) )
# Bottom piece. # Bottom piece.
@ -195,7 +195,7 @@ class DividerTray(Boxes):
"f" if self.left_wall else "e", "f" if self.left_wall else "e",
], ],
callback=[partial(self.generate_finger_holes, side_wall_length)], callback=[partial(self.generate_finger_holes, side_wall_length)],
move="up", move="up", label="Bottom",
) )
# Dividers # Dividers
@ -322,7 +322,7 @@ class DividerTray(Boxes):
) )
# Move for next piece # Move for next piece
self.move(total_width, height, move) self.move(total_width, height, move, label="Divider")
class SlottedEdgeDescriptions: class SlottedEdgeDescriptions: