Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- '''
- Created on 21/10/2014
- arcos de colores que se repiten en una fila y columan
- @author: A01221672
- '''
- from tkinter import *
- import random
- ventana=Tk()
- largo = 500
- ancho = 500
- foo = ["#7D735A","#DBAA6F","#FFCE6F","#FCE190","#1C343E"]
- lienzo=Canvas(ventana,width=largo,height=ancho)
- lienzo.pack()
- for fila in range (0,ancho,int(ancho/10)):
- for col in range(0, ancho, int(ancho/10)):
- color= random.choice(foo)
- 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