Fix the BOARD & MODULE classes SWIG interface
This commit is contained in:
parent
3c3ee9b8c3
commit
37f8c83c5b
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue