diff --git a/pcbnew/python/swig/netinfo.i b/pcbnew/python/swig/netinfo.i index 9801c75f4c..230fd2b047 100644 --- a/pcbnew/python/swig/netinfo.i +++ b/pcbnew/python/swig/netinfo.i @@ -10,6 +10,15 @@ #include %} +%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 {