Cleanup imports
This commit is contained in:
parent
a0d3d51180
commit
61c95ec0c7
|
@ -1,9 +1,9 @@
|
||||||
#!/usr/bin/python
|
#!/usr/bin/python
|
||||||
|
|
||||||
import boxes
|
from boxes import *
|
||||||
import math
|
import math
|
||||||
|
|
||||||
class FlexBox(boxes.Boxes):
|
class FlexBox(Boxes):
|
||||||
def __init__(self, x, y, z, r=None, thickness=3.0):
|
def __init__(self, x, y, z, r=None, thickness=3.0):
|
||||||
self.x = x
|
self.x = x
|
||||||
self.y = y
|
self.y = y
|
||||||
|
@ -15,11 +15,10 @@ class FlexBox(boxes.Boxes):
|
||||||
width = 2*x + y - 3*r + 2*c4 + 6*thickness + self.latchsize # lock
|
width = 2*x + y - 3*r + 2*c4 + 6*thickness + self.latchsize # lock
|
||||||
height = y + z + 8*thickness
|
height = y + z + 8*thickness
|
||||||
|
|
||||||
boxes.Boxes.__init__(self, width, height, thickness=thickness)
|
Boxes.__init__(self, width, height, thickness=thickness)
|
||||||
|
|
||||||
@boxes.restore
|
@restore
|
||||||
def flexBoxSide(self, x, y, r, callback=None):
|
def flexBoxSide(self, x, y, r, callback=None):
|
||||||
|
|
||||||
self.cc(callback, 0)
|
self.cc(callback, 0)
|
||||||
self.fingerJoint(x)
|
self.fingerJoint(x)
|
||||||
self.corner(90, 0)
|
self.corner(90, 0)
|
||||||
|
|
Loading…
Reference in New Issue