Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions AnnularChecker/annular_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ def wxLogDebug(msg,dbg):
#
def find_pcbnew_w():
windows = wx.GetTopLevelWindows()
pcbneww = [w for w in windows if "pcbnew" in w.GetTitle().lower()]
if len(pcbneww) != 1:
return None
return pcbneww[0]
for i in range(len(windows)):
if "pcbnew" in windows[i].GetTitle().lower():
return windows[i]
return None
#

class AnnularResult_Dlg(AnnularResultDlg.AnnularResultDlg):
Expand Down
8 changes: 4 additions & 4 deletions FabricationPositions/fabrication_positions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ def getOrientation(fp):

def find_pcbnew_w():
windows = wx.GetTopLevelWindows()
pcbneww = [w for w in windows if "pcbnew" in w.GetTitle().lower()]
if len(pcbneww) != 1:
return None
return pcbneww[0]
for i in range(len(windows)):
if "pcbnew" in windows[i].GetTitle().lower():
return windows[i]
return None
#


Expand Down
8 changes: 4 additions & 4 deletions MoveToLayer/move_to_layer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ def MoveToLayer(pcb,layerId):
#
def find_pcbnew_w():
windows = wx.GetTopLevelWindows()
pcbneww = [w for w in windows if "pcbnew" in w.GetTitle().lower()]
if len(pcbneww) != 1:
return None
return pcbneww[0]
for i in range(len(windows)):
if "pcbnew" in windows[i].GetTitle().lower():
return windows[i]
return None
#


Expand Down
8 changes: 4 additions & 4 deletions Snap2Grid/snap2grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def wxLogDebug(msg,dbg):
#
def find_pcbnew_w():
windows = wx.GetTopLevelWindows()
pcbneww = [w for w in windows if "pcbnew" in w.GetTitle().lower()]
if len(pcbneww) != 1:
return None
return pcbneww[0]
for i in range(len(windows)):
if "pcbnew" in windows[i].GetTitle().lower():
return windows[i]
return None
#

class Snap2Grid_Dlg(Snap2GridDlg.Snap2GridDlg):
Expand Down