Advertisement
Enrro

Grid 100433

Oct 4th, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. '''
  2. Created on 04/10/2014
  3. funcion para una gradilla
  4. @author: A01221672
  5. '''
  6. from tkinter import *
  7. import math
  8. def grid():
  9. for y in range(0,height,int((height/50))):
  10. lienzo.create_line(0,y,width,y)
  11. for x in range (0,width,int((width/50))):
  12. lienzo.create_line(x,0,x,width)
  13. ventana = Tk()
  14. width =400
  15. height = 300
  16. lienzo =Canvas(ventana, width= width, height=height)
  17. lienzo.pack()
  18. grid()
  19. mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement