SmallPartsTray: Minor cleanups

This commit is contained in:
Florian Festi 2023-01-09 21:03:10 +01:00
parent 5152c90fc5
commit b9e8c919ad
1 changed files with 3 additions and 3 deletions

View File

@ -23,7 +23,7 @@ class SmallPartsTray(Boxes):
ui_group = "Tray"
ui_group = "Unstable"
def __init__(self):
def __init__(self) -> None:
Boxes.__init__(self)
self.addSettingsArgs(edges.FingerJointSettings)
@ -45,7 +45,7 @@ class SmallPartsTray(Boxes):
def innerWall(self, h, y, ramp_h, ramp_y, two_ramps, front=True,
edges="ffeff", move=None):
move=None):
a = math.degrees(math.atan(ramp_h/ramp_y))
l = (ramp_h**2 + ramp_y**2)**.5
if two_ramps:
@ -59,7 +59,7 @@ class SmallPartsTray(Boxes):
"ffeff" if front else "ffeef", move=move)
def outerWall(self, h, y, ramp_h, ramp_y, two_ramps, front=True,
edges="ffeff", move=None):
move=None):
a = math.degrees(math.atan(ramp_h/ramp_y))
l = (ramp_h**2 + ramp_y**2)**.5
t = self.thickness