Browse Source

Helper function to allow net.GetNetClassName()

newinvert
mitxela 3 years ago
committed by Jon Evans
parent
commit
734d3667a8
  1. 9
      pcbnew/python/swig/netinfo.i

9
pcbnew/python/swig/netinfo.i

@ -10,6 +10,15 @@
#include <netinfo.h>
%}
%extend NETINFO_ITEM
{
%pythoncode
%{
def GetNetClassName(self):
return self.GetNetClassSlow().GetName()
%}
}
// http://swig.10945.n7.nabble.com/std-containers-and-pointers-td3728.html
%{
namespace swig {

Loading…
Cancel
Save