From 37f8c83c5bc5e8a61cc25d69de569dee7eea0e9f Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Mon, 26 Jun 2017 14:22:32 +0200 Subject: [PATCH] Fix the BOARD & MODULE classes SWIG interface --- pcbnew/swig/board.i | 3 +-- pcbnew/swig/module.i | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/swig/board.i b/pcbnew/swig/board.i index 62cbaed731..05d04d5169 100644 --- a/pcbnew/swig/board.i +++ b/pcbnew/swig/board.i @@ -115,9 +115,8 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints) %{ def GetModules(self): return self.m_Modules - def GetDrawings(self): return self.m_Drawings + def GetDrawings(self): return self.DrawingsList() def GetTracks(self): return self.m_Track - def GetFullRatsnest(self): return self.m_FullRatsnest def Save(self,filename): return SaveBoard(filename,self,IO_MGR.KICAD) diff --git a/pcbnew/swig/module.i b/pcbnew/swig/module.i index b273766541..b03c73cd8a 100644 --- a/pcbnew/swig/module.i +++ b/pcbnew/swig/module.i @@ -42,12 +42,14 @@ // automatically and inherited by the python wrapper class. -/* %extend MODULE { %pythoncode %{ + def Pads(self): return self.PadsList() + def GraphicalItems(self): return self.GraphicalItemsList() + #def SaveToLibrary(self,filename): # return SaveModuleToLibrary(filename,self) @@ -57,7 +59,6 @@ # %} } -*/ %pythoncode