From 91b3b296fe3a033c8bc7d82156d2f90845d114f9 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 11 Aug 2023 09:57:45 +0200 Subject: [PATCH] Update python footprints wizards to be compatible with last changes in code. (PCB_TEXT Ctor has changed). --- pcbnew/python/plugins/bga_wizard.py | 2 +- pcbnew/python/plugins/microMatch_connectors.py | 2 +- pcbnew/python/plugins/mutualcap_button_wizard.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/python/plugins/bga_wizard.py b/pcbnew/python/plugins/bga_wizard.py index ac6421a85c..812eef5060 100644 --- a/pcbnew/python/plugins/bga_wizard.py +++ b/pcbnew/python/plugins/bga_wizard.py @@ -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 ) ) diff --git a/pcbnew/python/plugins/microMatch_connectors.py b/pcbnew/python/plugins/microMatch_connectors.py index 26a7e794aa..7b3fa6a6b2 100644 --- a/pcbnew/python/plugins/microMatch_connectors.py +++ b/pcbnew/python/plugins/microMatch_connectors.py @@ -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 diff --git a/pcbnew/python/plugins/mutualcap_button_wizard.py b/pcbnew/python/plugins/mutualcap_button_wizard.py index 92ae50387c..0ae53e76b9 100644 --- a/pcbnew/python/plugins/mutualcap_button_wizard.py +++ b/pcbnew/python/plugins/mutualcap_button_wizard.py @@ -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 ) )