#graphpaper_maker.py from ezgraphics import GraphicsWindow width = int(input("Enter width of graphics window: ")) height = int(input("Enter height of graphics window: ")) h_gap = int(input("Enter horizontal gap/spacing ")) v_gap = int(input("Enter vertical gap/spacing: ")) win = GraphicsWindow(width,height) win.setTitle("Your customized graph paper") win.showStatus() win.setStatus("Alt+PrtScr this window, paste into an image editor like IrfanView") # why is it larger??? #why is the window always last"? canvas = win.canvas() for row in range(height//v_gap): for col in range(width//h_gap): canvas.drawLine(0,row*v_gap, width,row*v_gap) #a row canvas.drawLine(col*h_gap,0, col*h_gap,height) #a column win.wait()