Update python footprints wizards to be compatible with last changes in code.

(PCB_TEXT Ctor has changed).
This commit is contained in:
jean-pierre charras 2023-08-11 09:57:45 +02:00
parent e9c51f1d12
commit 91b3b296fe
3 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ class BGAWizard(FootprintWizardBase.FootprintWizard):
self.draw.Reference(0, -ypos, text_size)
# 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.SetPosition( pcbnew.VECTOR2I( 0, 0) )
extra_text.SetTextSize( pcbnew.VECTOR2I( text_size, text_size ) )

View File

@ -135,7 +135,7 @@ class MicroMaTchWizard(FPWbase.FootprintWizard):
# Use value to fill the modules description
desc = self.GetValue()
self.module.SetDescription(desc)
self.module.SetLibDescription(desc)
self.module.SetAttributes( pcbnew.FP_SMD )
# add in the pads

View File

@ -130,7 +130,7 @@ class MutualcapButtonWizard(FootprintWizardBase.FootprintWizard):
self.draw.Reference(0, -h/2-textSize, textSize)
# 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.SetPosition( pcbnew.VECTOR2I( 0, 0) )
extra_text.SetTextSize( pcbnew.VECTOR2I( textSize, textSize ) )