Menu de figuras de Polygonos
En este programa eh reunido las figuras que han creado mis compañeros con tkinter. (Faltan ejemplos de algunos compañeros, cuando los tenga los añadiré)
# -*-# -*- coding: utf-8 -*- from Tkinter import * import tkColorChooser #libreria para obtener la gama de colores #crecion de la ventana principal v0 = Tk() v0.title('Menu de figuras con polygonos') v0.config(bg = 'brown') #bg para el color de fondo de la ventana v0.geometry('200x400')#tamaño de la ventana v0.iconbitmap("descarga.ico")#para cambiar el icono de la ventana #funciones def mostrar(num,nombre): #aparece la gamade colores RGB o en numero hexadecimal #ventana secundaria v1 = Toplevel(v0) v1.title(nombre) v1.protocol('Wn_DELETE_WINDOW',"onexit")#para cerrar la ventana por medio de la cruz #v1.geometry('450x560')#tamaño de la ventana v1.iconbitmap("vhija.ico") # para cambiar el icono de la ventana #condiciones para los botones if num == 1: #Alfredo_Santhos a = tkColorChooser.askcolor(title="Color de contorno") b = tkColorChooser.askcolor(title="Color de cornia y partes iluminadas") c = tkColorChooser.askcolor(title="Color de piel iluminada") d = tkColorChooser.askcolor(title="Color de sombra clara") e = tkColorChooser.askcolor(title="Color de sombra oscurra") f = tkColorChooser.askcolor(title="Color de sombra media") g = tkColorChooser.askcolor(title="Color de pupila") h = tkColorChooser.askcolor(title="Color de iris") canvas1 = Canvas(v1, width=450, height=560, bg='white') # (b[1])) esto es para seleccionar el color de fondo# OBJETO DE LA TKINTER CANVAS(FIGURAS) 200 pixeles de ancho 200 ancho canvas1.pack(expand=YES, fill=BOTH) # DESPLEGAR EL CANVAS, EXPAND QUE SEA EXPANDIBLE # puntos = [0, 0, 0, 10, 10, 10, 10, 20] # canvas1.create_polygon(puntos, width=10, fill=(a[1])) # Cabeza canvas1.create_polygon(50, 170, 50, 120, 60, 120, 60, 100, 70, 100, 70, 90, 90, 90, 90, 80, 160, 80, 160, 60, 170, 60, 170, 50, 190, 50, 190, 40, 230, 40, 230, 50, 240, 50, 240, 80, 230, 80, 230, 90, 270, 90, 270, 100, 290, 100, 290, 110, 300, 110, 300, 120, 310, 120, 310, 160, 300, 160, 300, 170, 290, 170, 290, 180, 280, 180, 280, 190, 200, 190, 50, 170, width=10, fill=( a[1])) # fill='black')#negro # beige canvas1.create_polygon(70, 150, 140, 120, 180, 120, 270, 130, 270, 180, 210, 180, 210, 200, 200, 220, 170, 250, 80, 250, 60, 240, 40, 220, 40, 200, 50, 180, 60, 170, 70, 150, width=10, fill=( c[1])) # fill="#%02x%02x%02x" % (240, 230, 140)) canvas1.create_polygon(30, 200, 30, 220, 40, 220, 40, 230, 50, 230, 50, 240, 60, 240, 60, 250, 80, 250, 80, 260, 110, 260, 110, 300, 120, 300, 120, 330, 130, 330, 130, 350, 140, 350, 140, 360, 150, 360, 150, 370, 160, 370, 160, 380, 170, 380, 170, 370, 160, 370, 160, 360, 150, 360, 150, 350, 140, 350, 140, 330, 130, 330, 130, 300, 120, 300, 120, 260, 170, 260, 170, 250, 180, 250, 180, 240, 190, 240, 190, 230, 200, 230, 200, 220, 210, 220, 210, 200, 220, 200, 220, 190, 250, 190, 250, 180, 280, 150, 280, 140, 270, 140, 270, 130, 260, 130, 260, 120, 210, 120, 210, 130, 200, 130, 200, 140, 210, 140, 210, 130, 260, 130, 260, 140, 270, 140, 270, 150, 280, 150, 250, 180, 210, 180, 210, 200, 200, 200, 200, 220, 190, 220, 190, 230, 180, 230, 180, 240, 170, 240, 170, 250, 80, 250, 80, 240, 60, 240, 60, 230, 50, 230, 50, 220, 40, 220, 40, 200, 30, 200, width=10, fill=(f[ 1])) # fill="#%02x%02x%02x" % (210, 106, 30) ) #barro canvas1.create_polygon(220, 50, 190, 50, 190, 60, 170, 60, 170, 80, 160, 80, 160, 90, 140, 100, 110, 100, 110, 90, 90, 90, 90, 110, 110, 110, 110, 100, 130, 100, 130, 110, 140, 110, 140, 120, 90, 120, 90, 130, 80, 130, 80, 140, 70, 140, 70, 150, 130, 150, 130, 140, 140, 140, 140, 120, 210, 110, 230, 110, 230, 100, 210, 100, 210, 110, 140, 120, 140, 100, 160, 90, 170, 90, 170, 70, 190, 70, 190, 60, 220, 60, 220, 60, width=10, fill=(b[ 1])) # fill='white')#blanco # cafemarrom canvas1.create_polygon(70, 100, 70, 120, 60, 120, 60, 170, 50, 170, 50, 180, 60, 180, 60, 170, 70, 170, 70, 140, 80, 140, 80, 130, 90, 130, 90, 120, 100, 120, 100, 110, 90, 110, 90, 100, 70, 100, width=10, fill=( d[1])) # fill="#%02x%02x%02x" % (250, 133, 63)) canvas1.create_rectangle(180, 120, 210, 130, width=1, fill=(d[1]), outline=( d[1])) # fill="#%02x%02x%02x" % (250, 133, 63),outline="#%02x%02x%02x" % (250, 133, 63)) canvas1.create_polygon(290, 120, 300, 120, 300, 160, 290, 160, 290, 170, 280, 170, 280, 180, 250, 180, 250, 170, 260, 170, 260, 160, 270, 160, 270, 150, 280, 150, 280, 140, 290, 140, 290, 120, width=10, fill=(d[ 1])) # fill="#%02x%02x%02x" % (250, 133, 63)) # cafe canvas1.create_polygon(200, 100, 190, 100, 180, 100, 180, 90, 170, 90, 170, 70, 190, 70, 190, 60, 220, 60, 220, 50, 230, 50, 230, 80, 220, 80, 220, 90, 200, 90, 200, 100, 200, 110, 180, 110, 180, 100, 160, 100, 160, 90, 110, 90, 110, 110, 100, 110, 100, 120, 130, 120, 130, 100, 140, 100, 140, 110, 130, 110, 130, 120, 260, 120, 260, 130, 270, 130, 270, 140, 290, 140, 290, 110, 270, 110, 270, 100, 230, 100, 230, 110, 210, 110, 210, 100, 200, 100, width=10, fill=( e[1])) # fill="#%02x%02x%02x" % (139, 69, 19)) # NARIZ canvas1.create_rectangle(20, 170, 50, 200, width=1, fill=(a[1]), outline=( a[1])) # fill="black", outline="black")#negro canvas1.create_rectangle(30, 180, 40, 190, width=1, fill=(e[1]), outline=( e[1])) # fill="#%02x%02x%02x" % (139, 69, 19),outline="#%02x%02x%02x" % (139, 69, 19))#cafe # OJO canvas1.create_polygon(140, 160, 140, 170, 110, 170, 110, 180, 100, 180, 100, 190, 90, 190, 90, 220, 100, 220, 100, 230, 130, 230, 130, 220, 160, 220, 160, 210, 170, 210, 170, 170, 180, 170, 180, 160, 140, 160, width=10, fill=( a[1])) # fill='black')#negro canvas1.create_polygon(100, 200, 100, 190, 110, 190, 130, 180, 160, 180, 160, 210, 150, 210, 150, 220, 140, 220, 100, 200, width=10, fill=(b[ 1])) # fill='white')#blanco canvas1.create_rectangle(100, 210, 130, 220, width=1, fill=(g[1]), outline=( g[1])) # fill="sky blue", outline="sky blue")#celeste canvas1.create_polygon(100, 210, 100, 200, 110, 200, 110, 180, 130, 180, 130, 190, 140, 190, 140, 220, 130, 220, 130, 210, width=10, fill=(h[ 1])) # fill='blue')#azul # cuerpo # MARRON canvas1.create_polygon(160, 450, 150, 450, 150, 480, 140, 480, 140, 500, 120, 500, 120, 450, 130, 450, 130, 450, 140, 450, 140, 360, 150, 360, 150, 370, 160, 370, 160, 450, 160, 480, 150, 480, 150, 500, 180, 500, 180, 470, 190, 470, 190, 430, 200, 430, 200, 380, 210, 380, 210, 350, 220, 350, 260, 320, 270, 340, 270, 370, 280, 380, 280, 430, 270, 470, 270, 500, 310, 500, 330, 420, 330, 420, 340, 400, 360, 400, 360, 480, 350, 480, 350, 500, 400, 500, 400, 430, 420, 430, 420, 370, 390, 370, 390, 360, 360, 210, 340, 190, 340, 260, 250, 300, 140, 260, 130, 260, 130, 290, 145, 340, 170, 370, 170, 450, 160, 450, width=10, fill=(d[1])) # NEGRO canvas1.create_polygon(130, 350, 130, 450, 120, 450, 120, 480, 110, 480, 110, 500, 120, 500, 120, 510, 180, 510, 180, 500, 190, 500, 190, 470, 200, 470, 200, 430, 210, 430, 210, 380, 200, 380, 200, 430, 190, 430, 190, 470, 180, 470, 180, 500, 150, 500, 150, 480, 160, 480, 160, 450, 170, 450, 170, 380, 160, 380, 160, 450, 150, 450, 150, 480, 140, 480, 140, 500, 120, 500, 120, 480, 130, 480, 130, 450, 140, 450, 140, 350, 130, 350, width=10, fill=(a[1])) canvas1.create_polygon(260, 340, 260, 370, 270, 370, 270, 380, 280, 380, 280, 430, 270, 430, 270, 470, 260, 470, 260, 500, 270, 500, 270, 510, 310, 510, 310, 500, 320, 500, 320, 460, 330, 460, 330, 420, 340, 420, 340, 400, 360, 400, 360, 450, 350, 450, 350, 480, 340, 480, 340, 500, 350, 500, 350, 510, 390, 510, 390, 500, 400, 500, 400, 470, 410, 470, 410, 430, 420, 430, 420, 410, 430, 410, 430, 380, 420, 380, 420, 370, 410, 370, 410, 360, 390, 360, 390, 370, 410, 370, 410, 380, 420, 380, 420, 410, 410, 410, 410, 430, 400, 430, 400, 470, 390, 470, 390, 500, 350, 500, 350, 480, 360, 480, 360, 450, 370, 450, 370, 390, 340, 390, 340, 380, 320, 380, 320, 370, 310, 370, 310, 360, 300, 360, 300, 350, 290, 350, 290, 340, 280, 340, 280, 350, 290, 350, 290, 360, 300, 360, 300, 370, 310, 370, 310, 380, 320, 380, 320, 390, 340, 390, 340, 400, 330, 400, 330, 420, 320, 420, 320, 460, 310, 460, 310, 500, 270, 500, 270, 470, 280, 470, 280, 430, 290, 430, 290, 380, 280, 380, 280, 370, 270, 370, 270, 340, 260, 340, width=10, fill=(a[1])) canvas1.create_polygon(160, 250, 160, 260, 170, 260, 170, 270, 180, 270, 180, 280, 200, 280, 200, 270, 220, 270, 220, 260, 240, 260, 240, 250, 260, 250, 260, 240, 320, 240, 320, 250, 340, 250, 340, 200, 350, 200, 350, 210, 360, 210, 360, 220, 370, 220, 370, 210, 360, 210, 360, 200, 350, 200, 350, 190, 340, 190, 340, 180, 330, 180, 330, 240, 320, 240, 320, 230, 260, 230, 260, 240, 240, 240, 240, 250, 220, 250, 220, 260, 200, 260, 200, 270, 180, 270, 180, 260, 170, 260, 170, 250, 160, 250, width=10, fill=(a[1])) # cafe canvas1.create_polygon(140, 260, 140, 270, 150, 270, 150, 280, 160, 280, 160, 290, 200, 290, 200, 300, 320, 300, 320, 290, 330, 290, 330, 280, 340, 280, 340, 250, 320, 250, 320, 240, 260, 240, 260, 250, 240, 250, 240, 260, 220, 260, 220, 270, 200, 270, 200, 280, 180, 280, 180, 270, 170, 270, 170, 260, 140, 260, width=10, fill=(e[1])) # beige canvas1.create_rectangle(220, 270, 240, 290, width=1, fill=(c[1]), outline=(c[1])) canvas1.create_rectangle(260, 250, 280, 270, width=1, fill=(c[1]), outline=(c[1])) canvas1.create_rectangle(280, 270, 300, 290, width=1, fill=(c[1]), outline=(c[1])) canvas1.create_rectangle(290, 240, 310, 250, width=1, fill=(c[1]), outline=(c[1])) canvas1.create_polygon(370, 220, 370, 230, 380, 230, 380, 260, 370, 260, 370, 270, 380, 270, 380, 290, 390, 290, 390, 330, 380, 330, 380, 350, 370, 350, 370, 340, 360, 340, 360, 220, 370, 220, width=10, fill=(c[1])) canvas1.create_polygon(210, 360, 220, 360, 220, 350, 230, 350, 230, 340, 250, 340, 250, 330, 290, 330, 290, 340, 300, 340, 300, 320, 290, 320, 290, 310, 260, 310, 260, 320, 240, 320, 240, 330, 230, 330, 230, 340, 220, 340, 220, 350, 210, 350, 210, 360, width=10, fill=(c[1])) canvas1.create_polygon(120, 260, 120, 300, 130, 300, 130, 330, 140, 330, 140, 350, 150, 350, 150, 360, 160, 360, 160, 370, 170, 370, 170, 350, 160, 350, 160, 340, 150, 340, 150, 320, 140, 320, 140, 290, 130, 290, 130, 260, 120, 260, width=10, fill=(c[1])) # blanco canvas1.create_polygon(150, 290, 150, 300, 160, 300, 160, 320, 170, 320, 170, 330, 180, 330, 180, 380, 170, 380, 170, 420, 180, 420, 180, 380, 190, 380, 190, 350, 200, 350, 200, 340, 210, 340, 210, 330, 200, 330, 200, 320, 190, 320, 190, 310, 170, 310, 170, 300, 160, 300, 160, 290, 150, 290, width=10, fill=(b[1])) canvas1.create_polygon(320, 340, 330, 340, 330, 360, 340, 360, 340, 330, 330, 330, 330, 320, 320, 320, 320, 340, width=10, fill=(b[1])) canvas1.create_polygon(350, 480, 350, 490, 360, 490, 360, 480, 370, 480, 370, 450, 380, 450, 380, 430, 370, 430, 370, 450, 360, 450, 360, 480, 350, 480, width=10, fill=(b[1])) # barro canvas1.create_polygon(210, 380, 220, 380, 220, 360, 230, 360, 230, 350, 250, 350, 250, 340, 290, 340, 290, 330, 250, 330, 250, 340, 230, 340, 230, 350, 220, 350, 220, 360, 210, 360, 210, 380, width=10, fill=(f[1])) canvas1.create_polygon(380, 360, 390, 360, 390, 330, 400, 330, 400, 290, 390, 290, 390, 270, 380, 270, 380, 260, 390, 260, 390, 230, 380, 230, 380, 220, 370, 220, 370, 230, 380, 230, 380, 260, 370, 260, 370, 270, 380, 270, 380, 290, 390, 290, 390, 330, 380, 330, 380, 360, width=10, fill=(f[1])) elif num == 2: #hugo panel = Canvas(v1, width=250, height=500, bg='white') panel.pack() # ELRICHMC # Brazo izquierdo panel.create_polygon(6, 126, 22, 122, 82, 124, 82, 324, 14, 330, 6, 318, width=1, fill="#0a0a08") # Brazo base # # Brazo derecho panel.create_polygon(186, 146, 232, 146, 232, 312, 188, 314, width=1, fill="#0a0a08") # Brazo base # # Piernas panel.create_polygon(62, 442, 77, 415, 98, 414, 98, 369, 115, 368, 115, 310, 165, 309, 165, 362, 180, 360, 187, 401, 185, 441, 88, 457, width=1, fill="#898989") # # Pies panel.create_polygon(63, 470, 63, 442, 88, 457, 185, 441, 185, 468, 88, 485, width=1, fill="#282828") # # Camisa panel.create_polygon(126, 179, 138, 179, 138, 295, 165, 295, 165, 310, 114, 310, 114, 297, 125, 297, width=1, fill="#181917") # Parte negra panel.create_polygon(125, 165, 151, 165, 151, 310, 138, 310, 138, 180, 125, 180, width=1, fill="#861400") # Parte roja # # Cuerpo/capa panel.create_polygon(58, 449, 58, 326, 81, 324, 81, 132, 186, 134, 235, 142, 234, 312, 190, 315, 190, 402, 175, 362, 164, 362, 165, 296, 150, 296, 151, 166, 126, 165, 126, 298, 114, 298, 116, 368, 100, 369, 100, 414, 86, 417, 80, 414, width=1, fill="#0a0b08") # # Cara de ElRichMC panel.create_polygon(102, 10, 202, 22, 202, 137, 104, 132, width=1, fill="#333333") # Cara frontal panel.create_polygon(52, 32, 102, 10, 104, 132, 52, 133, width=1, fill="#1c1c1c") # Parte trasera panel.create_polygon(116, 72, 142, 72, 142, 88, 116, 86, width=1, fill="#060606") # Ojo izquierdo panel.create_polygon(168, 76, 190, 78, 192, 92, 166, 90, width=1, fill="#060606") # Ojo derecho panel.create_polygon(128, 104, 180, 106, 180, 121, 128, 118, width=1, fill="#060606") # Boca (sho te amo) # # Decoración panel.create_polygon(6, 126, 22, 122, 82, 124, 82, 138, 24, 136, 6, 140, width=1, fill="#530800") # Decoración - capa roja panel.create_polygon(5, 142, 6, 157, 9, 157, 11, 156, 11, 141, 18, 139, 18, 155, 21, 155, 23, 154, 23, 138, 31, 137, 31, 153, 37, 153, 38, 154, 46, 154, 46, 138, 62, 138, 63, 153, 64, 155, 78, 155, 78, 139, 84, 139, 84, 155, 113, 156, 113, 173, 126, 173, 126, 143, 100, 143, 99, 135, 88, 135, 88, 140, width=1, fill="#d3ac00") # Decoración - capa roja / decoración panel.create_polygon(186, 146, 232, 146, 234, 132, 214, 132, 214, 142, 186, 140, width=1, fill="#530800") # Decoración - capa roja panel.create_polygon(235, 148, 235, 161, 224, 161, 224, 147, 211, 146, 211, 160, 199, 160, 199, 146, 195, 147, 193, 159, 168, 159, 167, 174, 154, 175, 154, 181, 151, 180, 151, 153, 155, 152, 155, 145, 175, 146, 176, 139, 185, 140, 186, 146, 195, 147, width=1, fill="#d3ac00") # Decoración - capa roja / decoración elif num == 3: #Brandon panel = Canvas(v1, width=220, height=460, bg="white") panel.pack() # Sombra panel.create_polygon(60, 10, 150, 10, 150, 20, 160, 20, 160, 130, 150, 130, 150, 140, 170, 140, 170, 150, 180, 150, 180, 160, 190, 160, 190, 180, 200, 180, 200, 240, 190, 240, 190, 250, 180, 250, 180, 260, 170, 260, 170, 280, 160, 280, 160, 340, 170, 340, 170, 400, 180, 400, 180, 410, 190, 410, 190, 420, 200, 420, 200, 440, 120, 440, 120, 360, 110, 360, 110, 360, 110, 320, 100, 320, 100, 360, 90, 360, 90, 440, 10, 440, 10, 420, 20, 420, 20, 410, 30, 410, 30, 400, 40, 400, 40, 340, 50, 340, 50, 280, 40, 280, 40, 260, 30, 260, 30, 250, 20, 250, 20, 240, 10, 240, 10, 180, 20, 180, 20, 160, 30, 160, 30, 150, 40, 150, 40, 140, 60, 140, 60, 130, 50, 130, 50, 20, 60, 20, width=1, fill="black", outline="black") # Cabeza panel.create_polygon(60, 20, 150, 20, 150, 30, 140, 30, 140, 40, 70, 40, 70, 30, 60, 30, width=3, fill="white", outline="white") # Cara panel.create_polygon(60, 40, 70, 40, 70, 50, 140, 50, 140, 40, 150, 40, 150, 130, 140, 130, 140, 140, 70, 140, 70, 130, 60, 130, width=1, fill="white", outline="white") # Ojos panel.create_polygon(70, 70, 80, 70, 80, 80, 90, 80, 90, 70, 100, 70, 100, 80, 90, 80, 90, 90, 100, 90, 100, 100, 90, 100, 90, 90, 80, 90, 80, 100, 70, 100, 70, 90, 80, 90, 80, 80, 70, 80, 70, 70, width=1, fill="black", outline="black") panel.create_polygon(110, 70, 120, 70, 120, 80, 130, 80, 130, 70, 140, 70, 140, 80, 130, 80, 130, 90, 140, 90, 140, 100, 130, 100, 130, 90, 120, 90, 120, 100, 110, 100, 110, 90, 120, 90, 120, 80, 110, 80, width=1, fill="black", outline="black") # Boca panel.create_polygon(70, 110, 80, 110, 80, 120, 130, 120, 130, 110, 140, 110, 140, 120, 130, 120, 130, 130, 80, 130, 80, 120, 70, 120, 70, 110, width=1, fill="black", outline="black") # Cuello panel.create_polygon(90, 140, 120, 140, 120, 150, 110, 150, 110, 160, 100, 160, 100, 150, 90, 150, width=1, fill="#FFCC99", outline="#FFCC99") panel.create_polygon(90, 150, 100, 150, 100, 160, 110, 160, 110, 150, 120, 150, 120, 160, 110, 160, 110, 170, 100, 170, 100, 160, 90, 160, 90, 150, width=1, fill="gray", outline="gray") # Brazo izquierdo panel.create_polygon(40, 150, 60, 150, 60, 160, 70, 160, 70, 190, 80, 190, 80, 200, 60, 200, 60, 190, 50, 190, 50, 210, 40, 210, 40, 220, 60, 220, 60, 210, 70, 210, 70, 240, 60, 240, 60, 250, 30, 250, 30, 240, 20, 240, 20, 180, 30, 180, 30, 160, 40, 160, 40, 150, width=1, fill="white", outline="white") # Brazo derecho panel.create_polygon(130, 200, 130, 190, 140, 190, 140, 160, 150, 160, 150, 150, 170, 150, 170, 160, 180, 160, 180, 180, 190, 180, 190, 240, 180, 240, 180, 250, 150, 250, 150, 240, 140, 240, 140, 200, 130, 200, width=1, fill="white", outline="white") panel.create_polygon(140, 200, 150, 200, 150, 190, 160, 190, 160, 210, 170, 210, 170, 220, 150, 220, 150, 210, 140, 210, 140, 200, width=1, fill="black", outline="black") # Cuerpo panel.create_polygon(80, 150, 90, 150, 90, 160, 100, 160, 100, 170, 110, 170, 110, 160, 120, 160, 120, 210, 110, 210, 110, 230, 120, 230, 120, 240, 140, 240, 140, 250, 150, 250, 150, 290, 60, 290, 60, 250, 70, 250, 70, 240, 90, 240, 90, 230, 100, 230, 100, 210, 90, 210, 90, 160, 80, 160, 80, 250, width=1, fill="white", outline="white") # Cinturon panel.create_polygon(60, 290, 150, 290, 150, 300, 60, 300, width=1, fill="gray", outline="gray") # Mano izquierda panel.create_polygon(70, 200, 80, 200, 80, 210, 100, 210, 100, 230, 70, 230, 70, 200, width=1, fill="#FFCC99", outline="#FFCC99") # Mano derecha panel.create_polygon(110, 210, 130, 210, 130, 200, 140, 200, 140, 230, 110, 230, 110, 210, width=1, fill="#FFCC99", outline="#FFCC99") # Pierna Izquierda panel.create_polygon(60, 300, 100, 300, 100, 320, 90, 320, 90, 360, 80, 360, 80, 400, 50, 400, 50, 340, 60, 340, 60, 300, width=1, fill="white", outline="white") # Pierna Derecha panel.create_polygon(110, 300, 150, 300, 150, 340, 160, 340, 160, 400, 130, 400, 130, 360, 120, 360, 120, 320, 110, 320, width=1, fill="white", outline="white") # Pie Izquierdo panel.create_polygon(40, 400, 50, 400, 50, 420, 40, 420, width=1, fill="gray", outline="gray") panel.create_polygon(30, 410, 40, 410, 40, 420, 50, 420, 50, 410, 80, 410, 80, 430, 20, 430, 20, 420, 30, 420, width=1, fill="white", outline="white") panel.create_polygon(60, 410, 70, 410, 70, 420, 60, 420, width=1, fill="gray", outline="gray") # Pie Derecho panel.create_polygon(160, 400, 170, 400, 170, 420, 160, 420, width=1, fill="gray", outline="gray") panel.create_polygon(180, 410, 170, 410, 170, 420, 160, 420, 160, 410, 130, 410, 130, 430, 190, 430, 190, 420, 180, 420, width=1, fill="white", outline="white") panel.create_polygon(140, 410, 150, 410, 150, 420, 140, 420, width=1, fill="gray", outline="gray") elif num == 4: #Cassandra panel = Canvas(v1, width=220, height=460, bg='white') # dibujar algo, un lienzo, figuras panel.pack(expand=YES, fill=BOTH) # para expandir la ventana # Cuerpo completo panel.create_polygon(20, 10, 20, 10, 50, 10, 50, 20, 100, 20, 100, 10, 130, 10, 130, 20, 140, 20, 140, 50, 130, 50, 130, 60, 120, 60, 120, 150, 110, 50, 110, 70, 120, 70, 120, 110, 130, 110, 130, 120, 140, 120, 140, 130, 150, 130, 150, 140, 160, 140, 160, 150, 180, 150, 180, 130, 170, 130, 170, 120, 160, 120, 160, 100, 180, 100, 180, 110, 190, 120, 190, 120, 200, 120, 220, 130, 210, 130, 210, 210, 70, 210, 70, 190, 80, 190, 80, 160, 70, 160, 70, 150, 60, 150, 60, 130, 50, 130, 50, 120, 40, 120, 40, 110, 30, 110, 30, 70, 40, 70, 40, 50, 30, 50, 30, 60, 20, 60, 20, 50, 10, 50, 10, 20, 20, 20, 20, 10, width=7, fill="black", outline="black") # Color cafe oreja izq panel.create_polygon(50, 20, 50, 30, 40, 30, 40, 40, 30, 40, 30, 50, 20, 50, 20, 20, 50, 20, width=5, fill="brown", outline="brown") # Color cafe oreja derecha panel.create_polygon(130, 20, 130, 50, 120, 50, 120, 40, 110, 40, 110, 30, 100, 30, 100, 20, 130, 20, width=5, fill="brown", outline="brown") # Cara panel.create_polygon(100, 30, 50, 30, 50, 70, 40, 70, 40, 110, 50, 110, 50, 120, 70, 120, 70, 110, 80, 110, 80, 120, 100, 120, 100, 110, 110, 110, 110, 70, 100, 70, 100, 30, width=5, fill="white", outline="white") # Ojo izq1 panel.create_polygon(60, 50, 60, 60, 70, 60, 70, 50, 60, 50, width=5, fill="black", outline="black") # Mancha en el ojo panel.create_polygon(100, 40, 70, 40, 70, 70, 100, 70, 100, 40, width=6, fill="brown", outline="brown") # Ojo derecho panel.create_polygon(80, 50, 80, 60, 90, 60, 90, 50, 80, 50, width=5, fill="black", outline="black") # Nariz panel.create_polygon(90, 80, 90, 100, 60, 100, 60, 80, 90, 80, width=6, fill="black", outline="black") # Lengua panel.create_polygon(80, 120, 70, 120, 70, 150, 80, 150, 80, 120, width=5, fill="pink", outline="pink") # Cuerpo mitad 1 panel.create_polygon(120, 110, 120, 190, 130, 190, 130, 200, 110, 200, 110, 150, 100, 150, 100, 200, 80, 200, 80, 190, 90, 190, 90, 130, 100, 130, 100, 120, 110, 120, 110, 110, 120, 110, width=5, fill="white", outline="white") # Cuerpo mitad 2 panel.create_polygon(200, 130, 200, 200, 170, 200, 170, 190, 180, 190, 180, 180, 170, 180, 170, 170, 160, 190, 160, 200, 140, 200, 140, 190, 130, 190, 130, 160, 180, 160, 180, 150, 190, 150, 190, 130, 200, 130, width=5, fill="white", outline="white") # Cola panel.create_polygon(180, 110, 170, 110, 170, 120, 180, 120, 180, 130, 190, 130, 190, 120, 180, 120, 180, 110, width=5, fill="brown", outline="brown") # Mancha lomo panel.create_polygon(130, 120, 120, 120, 120, 150, 130, 150, 130, 160, 160, 160, 160, 150, 150, 150, 150, 140, 140, 140, 140, 130, 140, 130, 140, 120, 120, 120, width=3, fill="brown", outline="brown") elif num == 5: #Leal panel = Canvas(v1,width=1000, height=600, bg="cyan") panel.pack() # cuerpo panel.create_polygon(96, 110, 137, 110, 290, 110, 317, 137, 289, 164, 275, 179, 275, 317, 220, 303, 221, 276, 206, 261, 165, 275, 151, 276, 109, 247, 109, 234, 123, 220, 165, 220, 165, 179, 96, 165, width=1, fill="#6BE0FF", outline="black") # mano panel.create_polygon(289, 109, 303, 82, 325, 60, 337, 62, 344, 82, 344, 55, 330, 55, 330, 42, 345, 27, 372, 28, 385, 41, 385, 69, 317, 137, width=1, fill="#2063FF", outline="black") # buster panel.create_polygon(96, 165, 96, 178, 54, 178, 41, 164, 13, 165, 14, 151, 0, 137, 13, 124, 13, 110, 41, 109, 55, 96, 96, 96, 96, 109, width=1, fill="#2063FF", outline="black") # pies panel.create_polygon(165, 275, 152, 316, 137, 331, 82, 331, 68, 317, 68, 303, 96, 276, 109, 234, 123, 220, width=1, fill="#2063FF", outline="black") panel.create_polygon(275, 303, 275, 330, 261, 344, 261, 399, 246, 413, 220, 412, 206, 399, 206, 330, 220, 316, 220, 289, width=1, fill="#2063FF", outline="black") # cabeza panel.create_polygon(138, 137, 138, 68, 275, 68, 275, 137, 234, 179, 179, 178, width=1, fill="#FFF595", outline="black") # cara panel.create_polygon(151, 137, 179, 137, 179, 82, 138, 82, 138, 110, width=1, fill="#FFFFFF", outline="black") panel.create_polygon(165, 124, 179, 124, 179, 96, 165, 96, width=1, fill="#000000", outline="black") panel.create_polygon(193, 137, 193, 82, 234, 82, 248, 96, 248, 124, 234, 138, width=1, fill="#FFFFFF", outline="black") panel.create_polygon(193, 124, 220, 124, 220, 96, 193, 96, width=1, fill="#000000", outline="black") panel.create_polygon(179, 137, 207, 138, 220, 151, 220, 164, 207, 179, 179, 178, 165, 165, 165, 151, width=1, fill="#000000", outline="black") # armor panel.create_polygon(247, 137, 247, 165, 275, 137, 275, 55, 249, 28, 220, 28, 193, 55, 193, 69, 165, 69, 165, 55, 151, 55, 137, 69, 137, 82, 165, 82, 165, 96, 193, 96, 193, 83, 234, 82, 261, 108, 261, 137, width=1, fill="#2063FF", outline="black") panel.create_polygon(275, 220, 275, 248, 235, 261, 207, 261, 165, 220, width=1, fill="#2063FF", outline="black") # accesorios panel.create_polygon(0, 137, 13, 124, 82, 124, 70, 137, width=1, fill="#6BE0FF", outline="black") panel.create_polygon(165, 68, 165, 55, 193, 27, 220, 27, 193, 55, 193, 68, width=1, fill="#6BE0FF", outline="black") elif num == 6: #David canvas1 = Canvas(v1, width=500, height=500, bg="black") canvas1.pack(expand=YES, fill=BOTH) canvas1.create_polygon(140, 20, 160, 20, 200, 40, 240, 80, 260, 100, 300, 80, 340, 100, 360, 80, 400, 40, 440, 20, 460, 20, 480, 80, 460, 140, 440, 200, 360, 140, 300, 200, 240, 140, 160, 200, 140, 140, 120, 80, width=5, fill=("#C6A58A"), outline="#FFFFFF") canvas1.create_polygon(160, 200, 240, 140, 300, 200, 360, 140, 440, 200, 460, 280, 480, 360, 460, 360, 440, 340, 380, 400, 320, 420, 280, 420, 220, 400, 160, 340, 140, 360, 120, 360, 140, 300, width=5, fill=("#AF7A4E"), outline="#FFFFFF") canvas1.create_polygon(200, 220, 220, 220, 260, 240, 220, 240, width=5, fill=("yellow"), outline="#000000") canvas1.create_polygon(340, 240, 380, 220, 400, 220, 380, 240, width=5, fill=("yellow"), outline="#000000") canvas1.create_polygon(320, 220, 340, 300, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(340, 300, 360, 340, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(360, 340, 360, 360, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(280, 220, 260, 300, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(260, 300, 240, 340, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(240, 340, 240, 360, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(240, 360, 280, 380, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(360, 360, 320, 380, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(360, 360, 400, 280, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(240, 360, 200, 280, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(320, 380, 340, 340, 320, 320, 280, 320, 260, 340, 280, 380, width=5, fill=("black"), outline="#FFFFFF") canvas1.create_polygon(220, 220, 240, 240, 220, 240, width=5, fill=("black"), outline="#000000") canvas1.create_polygon(380, 220, 380, 240, 360, 240, width=5, fill=("black"), outline="#000000") canvas1.create_polygon(160, 40, 160, 140, 180, 160, 220, 120, 220, 100, width=5, fill=("#AF7A4E"), outline="#FFFFFF") canvas1.create_polygon(440, 40, 380, 100, 380, 120, 420, 160, 440, 140, width=5, fill=("#AF7A4E"), outline="#FFFFFF") elif num == 7: #Muñoz panel = Canvas(v1, width=600, height=500, bg="light blue") panel.pack() # Pie1 panel.create_polygon((70, 180), (60, 170), (90, 170), width=1, fill="#FFFF00", outline="black") # pie2 panel.create_polygon((100, 180), (90, 170), (120, 170), fill="yellow", outline="black", width=1) # pierna1 panel.create_line((90, 170), (90, 160), fill="black", width=1) # pierna2 panel.create_line((120, 170), (110, 160), fill="black", width=1) # cuerpo panel.create_polygon((50, 50), (60, 40), (80, 40), (90, 60), (90, 80), (70, 100), (90, 100), (120, 120), (140, 120), (110, 160), (90, 160), (50, 130), (50, 100), (70, 80), (70, 60), fill="gray", outline="black", width=1) # pico panel.create_polygon((40, 60), (70, 60), (50, 50), width=1, outline="black", fill="yellow") # ojo panel.create_polygon((60, 40), (60, 50), (70, 50), width=1, outline="black", fill="yellow") elif num == 8: #Nicol panel = Canvas(v1, width=600, height=500, bg="gray") panel.pack() # contorno panel.create_polygon(92, 30, 148, 30, 174, 84, 148, 110, 200, 110, 229, 140, 255, 113, 255, 193, 229, 220, 92, 220, 65, 194, 65, 140, 90, 112, 66, 86, 66, 58, width=1, fill="#FFC914") # Alita panel.create_line(120, 140, 120, 166, width=4, fill="#ff9f04") panel.create_line(120, 166, 146, 194, width=4, fill="#ff9f04") panel.create_line(146, 194, 201, 193, width=4, fill="#ff9f04") panel.create_line(201, 193, 227, 166, width=4, fill="#ff9f04") panel.create_line(227, 166, 202, 140, width=4, fill="#ff9f04") panel.create_line(202, 140, 172, 140, width=4, fill="#ff9f04") # Ojito panel.create_oval(94, 72, 106, 86, width=4, fill="black") # Piquito panel.create_polygon(66, 86, 90, 112, 40, 112, width=4, fill="#ff9f04") # Agua panel.create_rectangle(0, 220, 600, 440, width=0, fill="#22d8cf") # Arena panel.create_rectangle(0, 438, 600, 520, width=0, fill="#fffa70") # conchita panel.create_polygon(249, 420, 285, 420, 302, 438, 304, 458, 266, 475, 254, 476, 248, 472, width=2, fill="#ff88c3") panel.create_polygon(266, 475, 254, 476, 266, 482, width=2, fill="#ff88c3") panel.create_polygon(254, 476, 248, 460, 242, 466, width=2, fill="#ff88c3") # cuerpo pescadito panel.create_polygon(31, 290, 42, 302, 60, 308, 74, 318, 88, 333, 88, 348, 73, 348, 45, 333, 43, 330, 37, 319, 31, 305, width=2, fill="#2682b4") # aletas pescadito panel.create_polygon(60, 308, 60, 290, 74, 305, 74, 318, width=2, fill="#f98ea9") panel.create_polygon(59, 333, 45, 348, 45, 333, width=2, fill="#f98ea9") panel.create_polygon(37, 319, 29, 319, 15, 305, 31, 305, width=2, fill="#f98ea9") # cola pescadito panel.create_polygon(31, 290, 30, 275, 45, 260, 44, 275, 59, 275, width=2, fill="#f98ea9") elif num == 9: panel = Canvas(v1, width=180, height=180, bg="gray") panel.pack() # cuerpo panel.create_polygon(40, 30, 60, 30, 60, 40, 40, 60, 30, 60, 30, 90, 50, 70, 70, 70, 90, 90, 90, 50, 110, 70, 150, 70, 170, 50, 170, 110, 160, 120, 140, 130, 120, 130, 100, 120, 90, 110, 90, 140, 100, 140, 100, 160, 70, 160, 70, 120, 50, 120, 40, 130, 40, 140, 60, 140, 60, 160, 20, 160, 0, 100, 10, 60, width=10, fill="#e0af77", outline="black") # ojos panel.create_polygon(100, 100, 100, 80, 120, 80, 120, 100, width=1, fill="white", outline="black") panel.create_polygon(140, 80, 140, 100, 160, 100, 160, 80, width=1, fill="white", outline="black") elif num == 10: mickey = Canvas(v1, width=390, height=390, bg="light blue") mickey.pack() # oreja mickey.create_polygon(100, 70, 100, 80, 90, 80, 90, 90, 80, 90, 80, 130, 90, 130, 90, 140, 130, 140, 130, 130, 140, 130, 140, 90, 130, 90, 130, 80, 120, 80, 120, 70) # cachete izquierdo mickey.create_polygon(120, 140, 120, 150, 110, 150, 110, 200, 120, 200, 120, 210, 130, 210, 130, 220, 150, 220, 150, 210, 130, 210, 130, 200, 120, 200, 120, 180, 130, 180, 130, 140) mickey.create_polygon(150, 220, 150, 230, 160, 230, 160, 220) # cara mickey.create_polygon(140, 120, 140, 130, 130, 130, 130, 180, 120, 180, 120, 200, 130, 200, 130, 210, 150, 210, 150, 220, 160, 220, 160, 230, 210, 230, 210, 220, 220, 220, 220, 210, 240, 210, 250, 200, 250, 180, 240, 180, 240, 130, 230, 130, 230, 120, 190, 120, 190, 130, 180, 130, 180, 120, width=1, fill="peach puff", outline="black") # frente mickey.create_polygon(130, 110, 230, 110, 230, 120, 130, 120) mickey.create_polygon(170, 100, 200, 100, 200, 110, 170, 110) mickey.create_polygon(180, 120, 190, 120, 190, 130, 180, 130) # mano mickey.create_polygon(130, 230, 130, 250, 140, 250, 140, 240, 150, 240, 150, 230) mickey.create_polygon(110, 220, 110, 230, 90, 230, 90, 250, 100, 250, 100, 260, 130, 260, 130, 250, 100, 250, 100, 240, 110, 240, 110, 230, 130, 230, 130, 220, ) mickey.create_polygon(110, 230, 110, 240, 100, 240, 100, 250, 130, 250, 130, 230, width=1, fill="white", outline="black") # oreja derecha mickey.create_polygon(230, 90, 230, 130, 240, 130, 240, 140, 280, 140, 280, 130, 290, 130, 290, 90, 280, 90, 280, 80, 270, 80, 270, 70, 250, 70, 250, 80, 240, 80, 240, 90) # cachete derecho mickey.create_polygon(240, 140, 240, 180, 250, 180, 250, 200, 240, 200, 240, 210, 250, 210, 250, 200, 260, 200, 260, 150, 250, 150, 250, 140) # mano derecha mickey.create_polygon(220, 210, 220, 220, 240, 220, 240, 210) mickey.create_polygon(210, 220, 210, 240, 230, 240, 230, 250, 240, 250, 240, 230, 220, 230, 220, 220) mickey.create_polygon(240, 220, 240, 230, 260, 230, 260, 220) mickey.create_polygon(240, 250, 240, 260, 270, 260, 270, 250, 280, 250, 280, 230, 260, 230, 260, 240, 270, 240, 270, 250) mickey.create_polygon(240, 230, 240, 250, 270, 250, 270, 240, 260, 240, 260, 230, width=1, fill="white", outline="black") # cuerpo mickey.create_polygon(140, 280, 140, 260, 150, 260, 150, 230, 210, 230, 210, 240, 160, 240, 160, 260, 150, 260, 150, 280) mickey.create_polygon(210, 240, 220, 240, 220, 260, 230, 260, 230, 280, 220, 280, 220, 260, 210, 260, ) # ropa mickey.create_polygon(160, 240, 160, 260, 150, 260, 150, 280, 180, 280, 180, 260, 170, 260, 170, 250, 210, 250, 210, 240, width=1, fill="red", outline="black") mickey.create_polygon(190, 250, 180, 250, 180, 270, 190, 270, 190, 280, 220, 280, 220, 260, 210, 260, 210, 250, 200, 250, 200, 260, 190, 260, width=1, fill="red", outline="red") # botones mickey.create_polygon(170, 250, 170, 260, 180, 260, 180, 250, width=1, fill="yellow", outline="black") mickey.create_polygon(190, 250, 190, 260, 200, 260, 200, 250, width=1, fill="yellow", outline="black") # pies mickey.create_polygon(180, 270, 190, 270, 190, 280, 210, 280, 210, 290, 210, 290, 230, 290, 230, 300, 240, 300, 240, 320, 220, 320, 220, 310, 230, 310, 230, 300, 210, 300, 210, 290, 200, 290, 200, 300, 190, 300, 190, 280, 180, 280) mickey.create_polygon(180, 300, 180, 320, 150, 320, 150, 330, 180, 330, 180, 320, 190, 320, 190, 330, 220, 330, 220, 320, 190, 320, 190, 300) mickey.create_polygon(160, 280, 160, 290, 140, 290, 140, 300, 130, 300, 130, 320, 150, 320, 150, 310, 140, 310, 140, 300, 160, 300, 160, 290, 170, 290, 170, 300, 180, 300, 180, 280) # zapatos mickey.create_polygon(160, 290, 160, 300, 140, 300, 140, 310, 150, 310, 150, 320, 180, 320, 180, 300, 170, 300, 170, 290, width=1, fill="yellow", outline="black") mickey.create_polygon(200, 290, 200, 300, 190, 300, 190, 320, 220, 320, 220, 310, 230, 310, 230, 300, 210, 300, 210, 290, width=1, fill="yellow", outline="black") # ojos mickey.create_polygon(150, 160, 150, 180, 160, 180, 160, 160) mickey.create_polygon(210, 160, 210, 180, 220, 180, 220, 160) # nariz mickey.create_polygon(170, 180, 170, 190, 180, 190, 180, 200, 190, 200, 190, 190, 200, 190, 200, 180) # boca mickey.create_polygon(160, 200, 160, 210, 170, 210, 170, 220, 200, 220, 200, 210, 210, 210, 210, 200, 200, 200, 200, 210, 170, 210, 170, 200) #elif num == 11: #Cynthia Maldonado #elif num == 12: #Banda elif num == 13: #Jesus canvas1 = Canvas(v1, width=200, height=200, bg="white") canvas1.pack(expand=YES, fill=BOTH) # contorno canvas1.create_polygon(100, 40, 110, 40, 110, 50, 130, 50, 130, 40, 140, 40, 140, 30, 150, 30, 150, 40, 160, 40, 160, 60, 170, 60, 170, 40, 180, 40, 180, 30, 190, 30, 190, 40, 200, 40, 200, 50, 220, 50, 220, 40, 230, 40, 230, 50, 240, 50, 240, 90, 250, 90, 250, 100, 240, 100, 240, 110, 230, 110, 230, 120, 240, 120, 240, 150, 230, 150, 230, 180, 220, 180, 220, 230, 210, 230, 210, 220, 200, 220, 200, 200, 190, 200, 190, 220, 200, 220, 200, 230, 190, 230, 190, 240, 180, 240, 180, 260, 170, 260, 170, 270, 160, 270, 160, 260, 150, 260, 150, 270, 140, 270, 140, 260, 130, 260, 130, 240, 120, 240, 120, 230, 110, 230, 110, 220, 120, 220, 120, 210, 130, 210, 130, 200, 120, 200, 120, 190, 100, 190, 100, 180, 90, 180, 90, 150, 80, 150, 80, 120, 90, 120, 90, 110, 80, 110, 80, 100, 70, 100, 70, 90, 80, 90, 80, 80, 90, 80, 90, 50, 100, 50, width=1, fill="black") # naranja canvas1.create_polygon(130, 210, 150, 210, 150, 230, 130, 230, width=1, fill="#FF9B00") canvas1.create_polygon(160, 210, 180, 210, 180, 230, 160, 230, width=1, fill="#FF9B00") canvas1.create_polygon(140, 240, 150, 240, 150, 250, 140, 250, width=1, fill="#FF9B00") canvas1.create_polygon(160, 240, 170, 240, 170, 250, 160, 250, width=1, fill="#FF9B00") # CARNE # pies canvas1.create_polygon(140, 250, 150, 250, 150, 260, 140, 260, width=1, fill="#%02x%02x%02x" % (234, 183, 164)) canvas1.create_polygon(160, 250, 170, 250, 170, 260, 160, 260, width=1, fill="#%02x%02x%02x" % (234, 183, 164)) # manos canvas1.create_polygon(120, 220, 130, 220, 130, 230, 120, 230, width=1, fill="#%02x%02x%02x" % (234, 183, 164)) canvas1.create_polygon(180, 220, 190, 220, 190, 230, 180, 230, width=1, fill="#%02x%02x%02x" % (234, 183, 164)) # cara canvas1.create_polygon(110, 180, 120, 180, 120, 190, 200, 190, 200, 180, 210, 180, 210, 160, 200, 160, 200, 150, 120, 150, 120, 160, 110, 160, width=1, fill="#%02x%02x%02x" % (234, 183, 164)) # banda canvas1.create_polygon(140, 120, 180, 120, 180, 140, 140, 140, width=1, fill="grey") # ojos canvas1.create_polygon(130, 180, 140, 180, 140, 160, 130, 160, width=1, fill="black") canvas1.create_polygon(130, 160, 140, 160, 140, 150, 130, 150, width=1, fill="blue") canvas1.create_polygon(180, 160, 190, 160, 190, 180, 180, 180, width=1, fill="black") canvas1.create_polygon(180, 160, 190, 160, 190, 150, 180, 150, width=1, fill="blue") # cabello canvas1.create_polygon(100, 180, 110, 180, 110, 160, 120, 160, 120, 150, 100, 150, width=1, fill="#%02x%02x%02x" % (221, 220, 76)) canvas1.create_polygon(220, 180, 210, 180, 210, 160, 200, 160, 200, 150, 220, 150, width=1, fill="#%02x%02x%02x" % (221, 220, 76)) canvas1.create_polygon(100, 140, 100, 130, 110, 130, 110, 120, 120, 120, 120, 110, 200, 110, 200, 120, 210, 120, 210, 130, 220, 130, 220, 140, 230, 140, 230, 120, 220, 120, 220, 110, 230, 110, 230, 100, 240, 100, 240, 90, 230, 90, 230, 50, 220, 50, 220, 60, 210, 60, 210, 70, 200, 70, 200, 50, 190, 50, 190, 40, 180, 40, 180, 60, 170, 60, 170, 70, 160, 70, 160, 60, 150, 60, 150, 40, 140, 40, 140, 50, 130, 50, 130, 70, 120, 70, 120, 60, 110, 60, 110, 50, 100, 50, 100, 90, 80, 90, 80, 100, 90, 100, 90, 110, 100, 110, 100, 120, 90, 120, 90, 140, width=1, fill="#%02x%02x%02x" % (221, 220, 76)) elif num == 14: #Kenneth panel = Canvas(v1, width=640, height=180, bg="gray") panel.pack() # BODY panel.create_polygon(50, 10, 70, 10, 70, 30, 90, 30, 90, 50, 150, 50, 150, 30, 170, 30, 190, 30, 190, 10, 170, 10, 170, 50, 190, 50, 190, 70, 210, 70, 210, 90, 230, 90, 230, 150, 210, 150, 210, 110, 190, 110, 190, 150, 170, 150, 130, 150, 130, 170, 170, 170, 170, 130, 70, 130, 70, 150, 70, 170, 110, 170, 110, 150, 50, 150, 50, 110, 30, 110, 30, 150, 10, 150, 10, 90, 30, 90, 30, 70, 50, 70, 50, 50, 70, 50, 70, 30, 50, 30, 50, 10, width=1, fill="green", outline="black") # OJO panel.create_polygon(70, 70, 90, 70, 90, 110, 70, 110, 70, 70, width=1, fill="white", outline="black") # OJO panel.create_polygon(150, 70, 170, 70, 170, 110, 150, 110, 150, 70, width=1, fill="white", outline="black") # Nave panel.create_polygon(340, 160, 340, 140, 320, 140, 320, 120, 260, 120, 260, 100, 300, 100, 300, 80, 320, 80, 320, 60, 340, 60, 340, 40, 380, 40, 380, 20, 500, 20, 500, 40, 540, 40, 540, 60, 560, 60, 560, 80, 580, 80, 580, 100, 620, 100, 620, 120, 560, 120, 560, 140, 540, 140, 540, 160, 520, 160, 520, 140, 500, 140, 500, 120, 460, 120, 460, 140, 420, 140, 420, 120, 380, 120, 380, 140, 360, 140, 360, 160, 340, 160, width=1, fill="orange", outline="black") # NaveWindow panel.create_polygon(340, 80, 340, 100, 360, 100, 360, 80, 340, 80, width=1, fill="white", outline="black") panel.create_polygon(400, 100, 400, 80, 420, 80, 420, 100, 400, 100, width=1, fill="white", outline="black") panel.create_polygon(460, 100, 460, 80, 480, 80, 480, 100, 460, 100, width=1, fill="white", outline="black") panel.create_polygon(520, 100, 520, 80, 540, 80, 540, 100, 520, 100, width=1, fill="white", outline="black") elif num == 15: #Alexis canvas1 = Canvas(v1, width=800, height=800, bg="#092A81") canvas1.pack(expand=YES, fill=BOTH) # casco canvas1.create_polygon(66, 145, 75, 110, 105, 70, 132, 42, 165, 32, 240, 31, 300, 83, 325, 157, 294, 210, 211, 265, 169, 268, 128, 254, 80, 205, width=10, fill='grey', outline="black") # VidrioCasco canvas1.create_polygon(66, 145, 75, 110, 105, 70, 160, 47, 224, 48, 256, 64, 290, 98, 308, 137, 309, 163, 283, 178, 256, 211, 211, 265, 169, 268, 128, 254, 80, 205, width=10, fill="black") # Cuerpo canvas1.create_polygon(294, 210, 211, 265, 169, 268, 165, 275, 175, 320, 220, 375, 310, 420, 410, 430, 430, 440, 485, 419, 510, 445, 530, 430, 528, 380, 470, 380, 410, 340, 315, 215, width=10, fill='#FFA107', outline="black") # LineaPiernas canvas1.create_polygon(410, 430, 330, 380, width=10, fill='black', outline="black") # Mochila1 canvas1.create_polygon(315, 215, 410, 340, 470, 295, 435, 210, 380, 180, 360, 180, width=10, fill='#DC5700', outline="black") # Mochila2 canvas1.create_polygon(315, 215, 360, 180, 285, 50, 270, 58, 300, 83, 325, 157, 294, 210, width=10, fill='#CA5101', outline="black") # Luna # luna canvas1.create_oval(-50, 800, 800, 460, width=10, fill='grey') # Brazo canvas1.create_polygon(165, 275, 155, 318, 115, 340, 109, 350, 118, 370, 135, 380, 160, 370, 193, 350, 175, 320, width=10, fill='black') # Palo de bandera canvas1.create_polygon(30, 220, 240, 500, width=10, fill='blue', outline="black") canvas1.create_polygon(370, 235, 360, 100, width=10, fill='blue', outline="white") canvas1.create_polygon(360, 100, width=10, fill='blue', outline="black") # bandera canvas1.create_polygon(30, 220, 0, 240, 0, 400, 105, 320, width=10, fill='white', outline="black") # brazo2 canvas1.create_polygon(270, 250, 285, 245, 300, 250, 310, 270, 280, 360, 220, 400, 202, 395, 198, 368, 238, 338, width=10, fill='black', outline="black") # bota canvas1.create_polygon(505, 380, 485, 419, 510, 445, 530, 430, 520, 380, width=10, fill='black', outline="black") # Reflejo canvas1.create_polygon(220, 75, 210, 90, 200, 95, 220, 110, 245, 115, 245, 95, width=10, fill='white') #elif num == 16: def ocultar(ventana): ventana.destray() def ejecutar(f): v0.after(200, f) #botones # V0 donde se va desplegar el boton b1 = Button(v0, text='Bambi, por Alfredo', command=lambda: ejecutar(mostrar(1,'Bambi, por Alfredo'))) b1.grid(row=1, column=1) # desplegar boton b2=Button(v0,text='Skin de Minecraft, por Hugo',command=lambda:ejecutar(mostrar(2,'Skin de Minecraft, por Hugo'))) b2.grid(row=2,column=1) #desplegar boton b3=Button(v0,text='DJ Marshmello, por Brandon',command=lambda:ejecutar(mostrar(3,'DJ Marshmello, por Brandon'))) b3.grid(row=3,column=1) #desplegar boton b4=Button(v0,text='Perrito, por Cassandra',command=lambda:ejecutar(mostrar(4,'Perrito, por Cassandra'))) b4.grid(row=4,column=1) #desplegar boton b5=Button(v0,text='dibujo de Leal',command=lambda:ejecutar(mostrar(5,'dibujo de Leal'))) b5.grid(row=5,column=1) #desplegar boton b6 = Button(v0, text='Lobo, por david', command=lambda: ejecutar(mostrar(6,'Lobo, por david'))) b6.grid(row=6, column=1) # desplegar boton b7=Button(v0,text='Ganzo, por Muñoz',command=lambda:ejecutar(mostrar(7,'Ganzo, por Muñoz'))) b7.grid(row=7,column=1) #desplegar boton b8=Button(v0,text='Paisaje, por Nicol',command=lambda:ejecutar(mostrar(8,'Paisaje, por Nicol'))) b8.grid(row=8,column=1) #desplegar boton b9=Button(v0,text='Gato, por Molina',command=lambda:ejecutar(mostrar(9,'Gato, por Molina'))) b9.grid(row=9,column=1) #desplegar boton b10=Button(v0,text='Micky Mouse, por Cynthia Barron',command=lambda:ejecutar(mostrar(10,'Micky Mouse, por Cynthia Barron'))) b10.grid(row=10,column=1) #desplegar boton """ b11 = Button(v0, text='Gatito, por Cynthia Maldonado', command=lambda: ejecutar(mostrar(11,'Gatito, por Cynthia Maldonado'))) b11.grid(row=11, column=1) # desplegar boton b12=Button(v0,text='Steve, por banda',command=lambda:ejecutar(mostrar(12,'Steve, por banda'))) b12.grid(row=12,column=1) #desplegar boton """ b13=Button(v0,text='Naruto ,por Jesus',command=lambda:ejecutar(mostrar(13,'Naruto ,por Jesus'))) b13.grid(row=11,column=1) #desplegar boton b14=Button(v0,text='Naves, por Marlon',command=lambda:ejecutar(mostrar(14,'Naves, por Marlon'))) b14.grid(row=12,column=1) #desplegar boton b15=Button(v0,text='Astronauta, por Alexis',command=lambda:ejecutar(mostrar(15,'Astronauta, por Alexis'))) b15.grid(row=13,column=1) #desplegar boton v0.mainloop()
Menu de figuras:
Figuras:
Comentarios
Publicar un comentario