Advertisement
Enrro

arcos pie chard 102133

Oct 21st, 2014
178
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. '''
  2. Created on 21/10/2014
  3. arcos de colores que se repiten en una fila y columan
  4. @author: A01221672
  5. '''
  6.  
  7. from tkinter import *
  8. import random
  9.  
  10. ventana=Tk()
  11. largo = 500
  12. ancho = 500
  13. foo = ["#7D735A","#DBAA6F","#FFCE6F","#FCE190","#1C343E"]
  14. lienzo=Canvas(ventana,width=largo,height=ancho)
  15. lienzo.pack()
  16. for fila in range (0,ancho,int(ancho/10)):
  17. for col in range(0, ancho, int(ancho/10)):
  18. color= random.choice(foo)
  19. lienzo.create_arc(fila,col,fila+ancho/10,col+ancho/10,outline= color,fill =color, style="pieslice", extent = 90)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement