Fix python footprint wizards after recent changes in code
This commit is contained in:
parent
4d8ee4685d
commit
411914dffb
|
@ -481,7 +481,7 @@ class FootprintWizardDrawingAids:
|
|||
"""!
|
||||
Draw a line from (x1, y1) to (x2, y2)
|
||||
"""
|
||||
outline = pcbnew.EDGE_MODULE(self.module)
|
||||
outline = pcbnew.FP_SHAPE(self.module)
|
||||
outline.SetWidth(self.GetLineThickness())
|
||||
outline.SetLayer(self.GetLayer())
|
||||
outline.SetShape(pcbnew.S_SEGMENT)
|
||||
|
@ -503,7 +503,7 @@ class FootprintWizardDrawingAids:
|
|||
DC line thickness
|
||||
"""
|
||||
|
||||
circle = pcbnew.EDGE_MODULE(self.module)
|
||||
circle = pcbnew.FP_SHAPE(self.module)
|
||||
start = self.TransformPoint(x, y)
|
||||
|
||||
if filled:
|
||||
|
@ -533,7 +533,7 @@ class FootprintWizardDrawingAids:
|
|||
@param sy: the y co-ordinate of the arc start point
|
||||
@param a: the arc's central angle (in deci-degrees)
|
||||
"""
|
||||
circle = pcbnew.EDGE_MODULE(self.module)
|
||||
circle = pcbnew.FP_SHAPE(self.module)
|
||||
circle.SetWidth(self.dc['lineThickness'])
|
||||
|
||||
center = self.TransformPoint(cx, cy)
|
||||
|
|
|
@ -49,8 +49,8 @@ class PadMaker(object):
|
|||
pad = pcbnew.D_PAD(self.module)
|
||||
pad.SetSize(pcbnew.wxSize(Hsize, Vsize))
|
||||
pad.SetShape(shape)
|
||||
pad.SetAttribute(pcbnew.PAD_ATTRIB_STANDARD)
|
||||
pad.SetLayerSet(pad.StandardMask())
|
||||
pad.SetAttribute(pcbnew.PAD_ATTRIB_PTH)
|
||||
pad.SetLayerSet(pad.PTHMask())
|
||||
pad.SetDrillSize(pcbnew.wxSize(drill, drill))
|
||||
pad.SetOrientation(rot_degree*10) # rotation is in 0.1 degrees
|
||||
|
||||
|
|
|
@ -67,7 +67,7 @@ class QRCodeWizard(FootprintWizardBase.FootprintWizard):
|
|||
|
||||
def drawPixelSquareArea( self, layer, size, xposition, yposition):
|
||||
# creates a FP_SHAPE of polygon type. The polygon is a square
|
||||
polygon = pcbnew.EDGE_MODULE(self.module)
|
||||
polygon = pcbnew.FP_SHAPE(self.module)
|
||||
polygon.SetShape(pcbnew.S_POLYGON)
|
||||
polygon.SetWidth( 0 )
|
||||
polygon.SetLayer(layer)
|
||||
|
|
Loading…
Reference in New Issue