Missing import and graphics directive added

This commit is contained in:
John Pateman 2020-04-27 21:40:09 +01:00
parent aac5dd7994
commit 352275339a
2 changed files with 4 additions and 2 deletions

View File

@ -1515,7 +1515,7 @@ if __name__ == "__main__":
if (SCMS == ""):
print("You need to have at least one SCM program path identified in lines 32 - 40")
exit()
gui = tk.Tk(SCMS)
gui = tk.Tk(':0.0', SCMS)
gui.withdraw()
gui.update()
Select = Select(gui)

View File

@ -5,12 +5,14 @@ Kicad plot pcb file.
Plot variety of svg files in plot directory
'''
import pcbnew
from pcbnew import *
def processBoard(boardName, plotDir): # Load board and initialize plot controller
board = LoadBoard(boardName)
board = pcbnew.LoadBoard(boardName)
boardbox = board.ComputeBoundingBox()
boardxl = boardbox.GetX()
boardyl = boardbox.GetY()