diff --git a/pcbnew/swig/pad.i b/pcbnew/swig/pad.i index 4b54e8c72e..516b007740 100644 --- a/pcbnew/swig/pad.i +++ b/pcbnew/swig/pad.i @@ -8,3 +8,20 @@ #include %} +%extend D_PAD +{ + %pythoncode + %{ + + # SetPadName() is the old name for D_PAD::SetName() + # define it for compatibility + def SetPadName(self, aName): + return self.SetName(aName) + + # GetPadName() is the old name for D_PAD::GetName() + # define it for compatibility + def GetPadName(self): + return self.GetName() + + %} +}