Fix the BOARD & MODULE classes SWIG interface

This commit is contained in:
Maciej Suminski 2017-06-26 14:22:32 +02:00
parent 3c3ee9b8c3
commit 37f8c83c5b
2 changed files with 4 additions and 4 deletions

View File

@ -115,9 +115,8 @@ HANDLE_EXCEPTIONS(BOARD::TracksInNetBetweenPoints)
%{ %{
def GetModules(self): return self.m_Modules 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 GetTracks(self): return self.m_Track
def GetFullRatsnest(self): return self.m_FullRatsnest
def Save(self,filename): def Save(self,filename):
return SaveBoard(filename,self,IO_MGR.KICAD) return SaveBoard(filename,self,IO_MGR.KICAD)

View File

@ -42,12 +42,14 @@
// automatically and inherited by the python wrapper class. // automatically and inherited by the python wrapper class.
/*
%extend MODULE %extend MODULE
{ {
%pythoncode %pythoncode
%{ %{
def Pads(self): return self.PadsList()
def GraphicalItems(self): return self.GraphicalItemsList()
#def SaveToLibrary(self,filename): #def SaveToLibrary(self,filename):
# return SaveModuleToLibrary(filename,self) # return SaveModuleToLibrary(filename,self)
@ -57,7 +59,6 @@
# #
%} %}
} }
*/
%pythoncode %pythoncode