Update python footprints wizards to be compatible with last changes in code.
(PCB_TEXT Ctor has changed).
This commit is contained in:
parent
e9c51f1d12
commit
91b3b296fe
|
@ -164,7 +164,7 @@ class BGAWizard(FootprintWizardBase.FootprintWizard):
|
||||||
self.draw.Reference(0, -ypos, text_size)
|
self.draw.Reference(0, -ypos, text_size)
|
||||||
|
|
||||||
# Add a extra text (${REFERENCE}) on the F_Fab layer
|
# Add a extra text (${REFERENCE}) on the F_Fab layer
|
||||||
extra_text = pcbnew.PCB_TEXT( self.module, pcbnew.PCB_TEXT.TEXT_is_DIVERS )
|
extra_text = pcbnew.PCB_TEXT( self.module )
|
||||||
extra_text.SetLayer( pcbnew.F_Fab )
|
extra_text.SetLayer( pcbnew.F_Fab )
|
||||||
extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) )
|
extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) )
|
||||||
extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) )
|
extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) )
|
||||||
|
|
|
@ -135,7 +135,7 @@ class MicroMaTchWizard(FPWbase.FootprintWizard):
|
||||||
|
|
||||||
# Use value to fill the modules description
|
# Use value to fill the modules description
|
||||||
desc = self.GetValue()
|
desc = self.GetValue()
|
||||||
self.module.SetDescription(desc)
|
self.module.SetLibDescription(desc)
|
||||||
self.module.SetAttributes( pcbnew.FP_SMD )
|
self.module.SetAttributes( pcbnew.FP_SMD )
|
||||||
|
|
||||||
# add in the pads
|
# add in the pads
|
||||||
|
|
|
@ -130,7 +130,7 @@ class MutualcapButtonWizard(FootprintWizardBase.FootprintWizard):
|
||||||
self.draw.Reference(0, -h/2-textSize, textSize)
|
self.draw.Reference(0, -h/2-textSize, textSize)
|
||||||
|
|
||||||
# Add a extra text (${REFERENCE}) on the F_Fab layer
|
# Add a extra text (${REFERENCE}) on the F_Fab layer
|
||||||
extra_text = pcbnew.PCB_TEXT( self.module, pcbnew.PCB_TEXT.TEXT_is_DIVERS )
|
extra_text = pcbnew.PCB_TEXT( self.module )
|
||||||
extra_text.SetLayer( pcbnew.F_Fab )
|
extra_text.SetLayer( pcbnew.F_Fab )
|
||||||
extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) )
|
extra_text.SetPosition( pcbnew.VECTOR2I( 0, 0) )
|
||||||
extra_text.SetTextSize( pcbnew.VECTOR2I( textSize, textSize ) )
|
extra_text.SetTextSize( pcbnew.VECTOR2I( textSize, textSize ) )
|
||||||
|
|
Loading…
Reference in New Issue