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