This commit is contained in:
Jean-Samuel Reynaud
2022-03-23 11:24:24 +01:00
parent 8787908e7e
commit 2437b3c1b9
3 changed files with 89 additions and 94 deletions

View File

@ -29,9 +29,9 @@ def PopulateNets(anet, dlg):
nets = pcbnew.GetBoard().GetNetsByName()
for netname, net in nets.items():
netname = net.GetNetname()
if netname != None and netname != "":
if netname is not None and netname != "":
dlg.m_cbNet.Append(netname)
if anet != None:
if anet is not None:
index = dlg.m_cbNet.FindString(anet)
dlg.m_cbNet.Select(index)
#