pyboxbuilder.box.types.sliding_catch.SlidingCatchBox

class pyboxbuilder.box.types.sliding_catch.SlidingCatchBox[source]

Bases: BoxTypeBase

Sliding-catch lid box type.

build_body(spec: BoxSpec) → Bosl2Solid[source]

Sliding grooves, plus a dimple beside the outlet for the catch.

build_lid(spec: BoxSpec, decoration: object = None) → Bosl2Solid[source]

Return the sliding plate with a bump that clicks into the body’s dimple.

interior(spec: BoxSpec) → Interior[source]

Return the frame the box’s contents may occupy.

lid_rounded_edges(spec: BoxSpec) → list[Anchor][source]

Return only the end that finishes outside the box.

Its top edge and the two vertical corners there. The rest of the plate lives in the channel.

preferred_scoop_side(spec: BoxSpec) → ScoopSide[source]

Return a finger scoop belongs in the wall the lid leaves by.

The other three carry the lid — two hold its grooves — and a scoop cut into a groove takes away the bearing that keeps the lid straight.

slide_axis(spec: BoxSpec) → str[source]

Return X — this type’s lid always exits the right face.