Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add photo frame generator #680

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions boxes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2132,12 +2132,22 @@ def _splitWall(self, pieces, side):
(True, True, True, True, True),
][pieces][side]

def roundedPlate(self, x, y, r, edge="f", callback=None,
holesMargin=None, holesSettings=None,
bedBolts=None, bedBoltSettings=None,
wallpieces=1,
extend_corners=True,
move=None):
def roundedPlate(
self,
x,
y,
r,
edge="f",
callback=None,
holesMargin=None,
holesSettings=None,
bedBolts=None,
bedBoltSettings=None,
wallpieces=1,
extend_corners=True,
move=None,
label=None,
):
"""Plate with rounded corner fitting to .surroundingWall()

For the callbacks the sides are counted depending on wallpieces
Expand All @@ -2154,6 +2164,7 @@ def roundedPlate(self, x, y, r, edge="f", callback=None,
:param wallpieces: (Default value = 1) # of separate surrounding walls
:param extend_corners: (Default value = True) have corners outset with the edges
:param move: (Default value = None)
:param label: (Default value = None)
"""
corner_holes = True

Expand Down Expand Up @@ -2218,7 +2229,7 @@ def roundedPlate(self, x, y, r, edge="f", callback=None,
self.hexHolesPlate(x - 2 * holesMargin, y - 2 * holesMargin, r,
settings=holesSettings)

self.move(overallwidth, overallheight, move)
self.move(overallwidth, overallheight, move, label=label)

def surroundingWallPiece(self, cbnr, x, y, r, pieces=1):
"""
Expand Down
Loading