FingerHoleEdge: Use modern code and add tab support
This commit is contained in:
parent
eb5f3008da
commit
72617110cf
|
@ -714,14 +714,11 @@ class FingerHoleEdge(BaseEdge):
|
||||||
|
|
||||||
def __call__(self, length, bedBolts=None, bedBoltSettings=None, **kw):
|
def __call__(self, length, bedBolts=None, bedBoltSettings=None, **kw):
|
||||||
dist = self.fingerHoles.settings.edge_width
|
dist = self.fingerHoles.settings.edge_width
|
||||||
self.ctx.save()
|
with self.saved_context():
|
||||||
self.fingerHoles(0, dist + self.settings.thickness / 2, length, 0,
|
self.fingerHoles(
|
||||||
|
0, dist + self.settings.thickness / 2, length, 0,
|
||||||
bedBolts=bedBolts, bedBoltSettings=bedBoltSettings)
|
bedBolts=bedBolts, bedBoltSettings=bedBoltSettings)
|
||||||
self.ctx.restore()
|
self.edge(length, tabs=2)
|
||||||
# XXX continue path
|
|
||||||
self.ctx.move_to(0, 0)
|
|
||||||
self.ctx.line_to(length, 0)
|
|
||||||
self.ctx.translate(*self.ctx.get_current_point())
|
|
||||||
|
|
||||||
def startwidth(self):
|
def startwidth(self):
|
||||||
""" """
|
""" """
|
||||||
|
|
Loading…
Reference in New Issue