Todas las figuras

from Tkinter import *
# -*- coding: utf-8 -*-from tkinter import *

VentanaPrincipal = Tk()

VH = Toplevel(VentanaPrincipal)
VH2 = Toplevel(VentanaPrincipal)
VH3 = Toplevel(VentanaPrincipal)
VH4 = Toplevel(VentanaPrincipal)
VH5 = Toplevel(VentanaPrincipal)
VH6 = Toplevel(VentanaPrincipal)
VH7 = Toplevel(VentanaPrincipal)
VH8 = Toplevel(VentanaPrincipal)
VH9 = Toplevel(VentanaPrincipal)
VH10 = Toplevel(VentanaPrincipal)
VH11 = Toplevel(VentanaPrincipal)
VH12 = Toplevel(VentanaPrincipal)
VH13 = Toplevel(VentanaPrincipal)
VH14 = Toplevel(VentanaPrincipal)
VH15 = Toplevel(VentanaPrincipal)
VH16 = Toplevel(VentanaPrincipal)
VH17 = Toplevel(VentanaPrincipal)

def mostrar(ventana): ventana.deiconify()


def ocultar(ventana): ventana.withdraw()


def ejecutar(f): VentanaPrincipal.after(200, f)


VentanaPrincipal.config(bg="green")
VentanaPrincipal.geometry("1920x1080")


def Circulo(ventana):
    VH.deiconify()
    Circulo = Canvas(VH, width=210, height=210, bg="black")
    Circulo.pack(expand=YES, fill=BOTH)
    Circulo.create_oval(10, 10, 200, 200, width=3, fill='lightblue')


def Rectangulo(ventana):
    VH2.deiconify()
    Rectangulo = Canvas(VH2, width=210, height=210, bg="yellow")
    Rectangulo.pack(expand=YES, fill=BOTH)
    Rectangulo.create_rectangle(10, 10, 200, 200, width=3, fill='orange')


def Linea(ventana):
    VH3.deiconify()
    Linea = Canvas(VH3, width=210, height=210, bg='black')
    Linea.pack(expand=YES, fill=BOTH)
    Linea.create_line(500, 500, 0, 0, width=10, fill="blue")


def Arco(ventana):
    VH4.deiconify()
    Arco = Canvas(VH4, width=210, height=210, bg='white')
    Arco.pack(expand=YES, fill=BOTH)
    xy = 10, 10, 190, 190
    Arco.create_arc(xy, start=0, extent=180, fill='gray60')
    # Arco.create_arc(10, 10, 190, 190, start=270, extent=90, fill='gray90')


def Quesadilla(ventana):
    VH5.deiconify()
    Queso = Canvas(VH5, width=210, height=210, bg='white')
    Queso.pack(expand=YES, fill=BOTH)
    Queso.create_arc(10, 10, 190, 190, start=270, extent=90, fill='gray90')


def Fusion(ventana):
    VH6.deiconify()
    Fusion = Canvas(VH6, width=210, height=210, bg='#E0ECFF')
    Fusion.pack()
    Fusion.create_arc(10, 10, 190, 190, start=0, extent=90, fill='brown')
    Fusion.create_arc(10, 10, 190, 190, start=90, extent=90, fill='gray')
    Fusion.create_arc(10, 10, 190, 190, start=180, extent=90, fill='brown')
    Fusion.create_arc(10, 10, 190, 190, start=270, extent=90, fill='gray')


def Texto(ventana):
    VH7.deiconify()
    Texto = Canvas(VH7, width=210, height=210, bg='white')
    Texto.pack(expand=YES, fill=BOTH)
    Texto.create_text(150, 70, fil="red", font="bold",
                      text="Graficacion")
    VH7.geometry("750x750")


def Poligono(ventana):
    VH8.deiconify()
    Poligono = Canvas(VH8, width=210, height=210, bg='white')
    Poligono.pack(expand=YES, fill=BOTH)
    Poligono.create_polygon(40, 40, 40, 140, 140, 140, 140, 100, fill="red", outline="brown", width=6)
    VH8.geometry("750x750")


def Corazon(ventana):
    VH9.deiconify()
    Corazon = Canvas(VH9, width=210, height=210, bg='white')
    Corazon.pack(expand=YES, fill=BOTH)
    Corazon.create_polygon(300, 300, 400, 200, 500, 200, 600, 300, 700, 200, 800, 200, 900, 300, 878, 395, 600, 700,
                           325, 401, fill="red", outline="brown", width=6)
    VH9.geometry("750x750")


def Perro(ventana):
    VH10.deiconify()
    Perro = Canvas(VH10, width=210, height=210, bg='white')
    Perro.pack(expand=YES, fill=BOTH)
    Perro.create_polygon(37.29, 21.55,
                         53.89, 47.62,
                         31, 80,
                         46.38, 98.19,
                         76.8, 83.97,
                         78.38, 131.78,
                         97.34, 132.17,
                         98.92, 98.19,
                         135.67, 97.4,
                         136.85, 134.15,
                         155.03, 133.75,
                         153.84, 80.81,
                         175.57, 24.32,
                         137.25, 58.69,
                         78.78, 61.45,
                         66.53, 42.88, fill="red", outline="brown", width=6)


def Conejo(ventana):
    VH11.deiconify()
    Conejo = Canvas(VH11, width=210, height=210, bg='green')
    Conejo.pack(expand=YES, fill=BOTH)
    Conejo.create_polygon(382.6, 54.5,
                          339.07, 56.3,
                          311.48, 99.02,
                          284.55, 99.02,
                          284.78, 141.74,
                          334.62, 141.74,
                          336.4, 180.91,
                          313.26, 212.95,
                          339.96, 240.54,
                          338.18, 212.06,
                          375.56, 254.78,
                          355, 286,
                          384.46, 302.84,
                          454.78, 303.73,
                          456.56, 210.28,
                          347.97, 113.26,
                          340.85, 97.24, fill="white", outline="black", width=6)


def figura(ventana):
    VH12.deiconify()
    figura = Canvas(VH12, width=210, height=210, bg='green')
    figura.pack(expand=YES, fill=BOTH)  # Sirve para cargar la figura

    figura.create_polygon(52.5, 14.5, 37, 59.1, 51, 59.1, fill="#5C554E", outline="#5C554E", width=1)
    figura.create_polygon(19.3, 56.8, 58, 59.1, 67, 91, 37.5, 83, fill="#C3BAB5", outline="#C3BAB5", width=1)
    figura.create_polygon(58, 57.8, 78, 77, 71, 103, fill="#D4CCC1", outline="#D4CCC1", width=1)
    figura.create_polygon(37.5, 83, 67.4, 91, 71, 103, fill="#998C8A", outline="#998C8A", width=1)
    figura.create_polygon(71, 103, 71, 104.8, 59.1, 104.8, 53.2, 91, fill="#665B57", outline="#665B57", width=1)

    figura.create_polygon(86, 105.6, 98.2, 148.6, 47, 133.6, 24.2, 103.6, fill="#C3BAB5", outline="#C3BAB5", width=1)
    figura.create_polygon(98.2, 148.6, 102, 165.2, 47, 133.6, fill="#9B8D8A", outline="#9B8D8A", width=1)
    figura.create_polygon(86, 105.6, 124, 169, 120, 196, 110.8, 196, fill="#D5CDC2", outline="#D5CDC2", width=1)
    figura.create_polygon(102, 165.2, 110.8, 196, 99, 196, 80.6, 153, fill="#605550", outline="#605550", width=1)

    figura.create_polygon(139.5, 197, 147, 241, 71, 220.4, 46, 193, fill="#C3BAB5", outline="#C3BAB5", width=1)
    figura.create_polygon(147, 241, 150, 261.4, 71, 220.4, fill="#968B87", outline="#968B87", width=1)
    figura.create_polygon(139.5, 197, 193, 274.2, 189, 307.8, 176, 321, 161.6, 321, fill="#D4CCC1", outline="#D4CCC1",
                          width=1)
    figura.create_polygon(150, 261.4, 161.6, 321, 126.8, 249, fill="#605551", outline="#605551", width=1)

    figura.create_polygon(199.4, 307.8, 189, 307.8, 176, 321, 186.6, 461, 184, 448.8, 171, 479.5, 199.4, 503,
                          fill="#C2AD9C", outline="#C2AD9C", width=1)
    figura.create_polygon(176, 321, 161.6, 321, 186.6, 461, fill="#615652", outline="#615652", width=1)
    figura.create_polygon(161.6, 321, 136, 359.4, 177.2, 409, fill="#D9C6B7", outline="#D9C6B7", width=1)
    figura.create_polygon(144.4, 369.8, 139.6, 384.6, 160, 389.4, fill="#443232", outline="#443232", width=1)
    figura.create_polygon(139.6, 384.6, 160, 389.4, 177.2, 409, 169.2, 450, fill="#826E65", outline="#826E65", width=1)
    figura.create_polygon(171, 479.5, 180.6, 497.8, 191.2, 496.8, fill="#463334", outline="#463334", width=1)
    figura.create_polygon(177.2, 409, 164.8, 475, 176.5, 511, 199.4, 522, 199.4, 502.8, 191.2, 496.8, 180.6, 497.8, 171,
                          479.5, 184, 448.8, fill="#9B7F79", outline="#9B7F79", width=1)

    figura.create_polygon(151.8, 335.4, 109.6, 280, 142.2, 349.2, fill="#5F5150", outline="#5F5150", width=1)
    figura.create_polygon(109.6, 280, 70.3, 266, 94.3, 329, 131.3, 326, fill="#483636", outline="#483636", width=1)
    figura.create_polygon(94.3, 329, 137, 336, 132, 326.8, fill="#C2AF9D", outline="#C2AF9D", width=1)
    figura.create_polygon(115, 333, 136, 359.4, 142.2, 349.2, 137, 336, fill="#826E65", outline="#826E65", width=1)

    # Lado inverso
    figura.create_polygon(346.5, 14.5, 347.5, 59.1, 361, 59.1, fill="#2E2621", outline="#2E2621", width=1)
    figura.create_polygon(379.4, 56.8, 341.8, 59.1, 332, 91, 361, 83, fill="#908782", outline="#908782", width=1)
    figura.create_polygon(341.5, 57.8, 324, 75, 327.6, 103, fill="#A29B8F", outline="#A29B8F", width=1)
    figura.create_polygon(361, 83, 332.4, 91, 329, 103, fill="#685D59", outline="#685D59", width=1)
    figura.create_polygon(329, 103, 326.8, 104.8, 340, 104.8, 345.6, 91, fill="#2D2220", outline="#2D2220", width=1)

    figura.create_polygon(313, 105.6, 301, 148.6, 352, 133.6, 374.5, 103.6, fill="#908782", outline="#908782", width=1)
    figura.create_polygon(301, 148.6, 297, 165.2, 352, 133.6, fill="#625755", outline="#625755", width=1)
    figura.create_polygon(313, 105.6, 274, 169, 279, 196, 288, 196, fill="#A1998E", outline="#A1998E", width=1)
    figura.create_polygon(297, 165.2, 288, 196, 300, 196, 318, 153, fill="#2D221E", outline="#2D221E", width=1)

    figura.create_polygon(260, 197, 252, 241, 331, 220.4, 352.4, 193, fill="#908782", outline="#908782", width=1)
    figura.create_polygon(252, 241, 249, 261.4, 331, 220.4, fill="#645955", outline="#645955", width=1)
    figura.create_polygon(260, 197, 205, 274.2, 209.8, 307.8, 223, 321, 238, 321, fill="#A1998E", outline="#A1998E",
                          width=1)
    figura.create_polygon(249, 261.4, 238.6, 321, 271.8, 249, fill="#2D221E", outline="#2D221E", width=1)

    figura.create_polygon(199.4, 307.8, 209.8, 307.8, 223, 321, 212.6, 461, 215, 448.8, 228, 479.5, 199.4, 503,
                          fill="#8E7968", outline="#8E7968", width=1)
    figura.create_polygon(223, 321, 238.6, 321, 212.6, 461, fill="#302722", outline="#302722", width=1)
    figura.create_polygon(238, 321, 262.8, 359.4, 222.5, 409, fill="#A69384", outline="#A69384", width=1)
    figura.create_polygon(254.4, 369.8, 259.6, 384.6, 238, 389.4, fill="#120001", outline="#120001", width=1)
    figura.create_polygon(259.6, 384.6, 238, 389.4, 222.5, 409, 229.5, 450, fill="#4F3B32", outline="#4F3B32", width=1)
    figura.create_polygon(228, 479.5, 218.3, 497.8, 207.5, 496.8, fill="#180A04", outline="#180A04", width=1)
    figura.create_polygon(222.5, 409, 234, 475, 223, 511, 199.4, 522, 199.4, 502.8, 207.5, 496.8, 218.3, 497.8, 228,
                          479.5, 215, 448.8, fill="#674C45", outline="#674C45", width=1)

    figura.create_polygon(247, 335.4, 290.6, 280, 256.8, 349.2, fill="#281F1D", outline="#281F1D", width=1)
    figura.create_polygon(290.6, 280, 328, 266, 304.8, 329, 267.5, 326, fill="#140202", outline="#140202", width=1)
    figura.create_polygon(304.8, 329, 262.5, 336, 267.5, 326.8, fill="#8D7B66", outline="#8D7B66", width=1)
    figura.create_polygon(283, 333, 262.8, 359.4, 256.8, 349.2, 262.5, 336, fill="#4D3930", outline="#4D3930", width=1)


def gato(ventana):
VH13.deiconify()
gato = Canvas(VH13, width=300, height=200, bg='white')
gato.pack(expand=YES, fill=BOTH)
gato.create_polygon(420, 180,
                        420, 60,
                        380, 100,
                        300, 100,
                        260, 60,
                        260, 140,
                        220, 100,
                        180, 100,
                        140, 140,
                        140, 80,
                        150, 80,
                        200, 40,
                        200, 20,
                        160, 20,
                        90, 80,
                        100, 160,
                        120, 270,
                        200, 270,
                        200, 230,
                        160, 230,
                        160, 210,
                        180, 190,
                        220, 190,
                        220, 270,
                        280, 270,
                        280, 230,
                        260, 230,
                        260, 180,
                        400, 200,
                        360, 220,
                        320, 220,
                        280, 180,
                        fill="lightblue", outline="brown", width=6)

def Mario(ventana):
VH14.deiconify()
Mario = Canvas(VH14, width=210, height=210, bg='White')
Mario.pack()
Mario.create_polygon(50, 20, 100, 20, 100, 30, 130, 30, 130, 40, 110, 40, 110, 50, 130, 50, 130, 60, 140, 60,
                            140, 70, 130, 70, 130, 80, 120, 80, 120, 90, 100, 90, 100, 100, 130, 100, 130, 110, 140,
                            110, 140, 150, 120, 150, 120, 160, 130, 160, 130, 170, 140, 170, 140, 180, 100, 180, 100,
                            160, 90, 160, 90, 150, 70, 150, 70, 160, 60, 160, 60, 180, 20, 180, 20, 170, 30, 170, 30,
                            160, 40, 160, 40, 150, 20, 150, 20, 110, 30, 110, 30, 100, 40, 100, 40, 90, 50, 90, 50, 80,
                            30, 80, 30, 50, 40, 50, 40, 30, 50, 30, fill="red", outline='white')

def Space(ventana):
VH15.deiconify()
Space = Canvas( VH15, width=300, height=200, bg='white')
Space.pack(expand=YES, fill=BOTH)
Space.create_polygon (250, 50, 200, 50, 200, 100, 250, 100, 250, 150, 200, 150, 200,
200, 150, 200, 150, 250, 100, 250, 100, 400, 150, 400, 150, 300,
200, 300, 200, 450, 350, 450, 350, 400, 250, 400, 250, 350, 500, 350,
500, 400, 400, 400, 400, 450, 550, 450,  550, 300, 600, 300, 600, 400,
650, 400, 650, 250, 600, 250, 600, 200, 550, 200, 550, 150, 500, 150, 500,
100, 550, 100, 550, 50, 450, 50, 450, 150, 300, 150, 300, 50, fill="black", outline="lightblue", width=6)
   
Space.create_polygon(250, 200, 250, 250, 300, 250, 300, 200, fill = "white", outline = "white", width=6)
Space.create_polygon(500, 200, 450, 200, 450, 250,500, 250, fill = "white", outline = "white", width=6)

def Mitsubishi(ventana):
VH16.deiconify()
Mitsubishi = Canvas(VH16, width=400, height=400, bg="white")
Mitsubishi.pack(expand=YES, fill=BOTH)
Mitsubishi.create_polygon(400, 50, 350, 150, 400, 250, 450, 150, fill="red", outline="red", width=6)
Mitsubishi.create_polygon(400, 250, 300, 250, 250, 350, 350, 350, fill="red", outline="red", width=6)
Mitsubishi.create_polygon(400, 250, 450, 350, 550, 350, 500, 250, fill="red", outline="red", width=6)

def spider(ventana):
VH17.deiconify()
poly = Canvas(VH17, width=400, heigh=400, bg='yellow')
poly.pack()
poly.create_polygon(100,0,
110,0,
110,30,
120,30,
120,40,
130,40,
130,50,
140,50,
140,60,
150,60,
150,70,
170,70,
170,80,
180,80,
180,90,
190,90,
190,100,
200,100,
200,120,
190,120,
190,130,
170,130,170,140,180,140,180,160,170,160,170,170,160,170,160,180,140,180,140,190,150,190,150,200,160,200,160,210,170,210,170,280,160,280,160,290,150,290,150,300,130,300,130,310,80,310,80,300,60,300,60,290,50,290,50,280,40,280,40,210,50,210,50,200,60,200,60,190,70,190,70,180,50,180,50,170,40,170,40,160,30,160,30,140,40,140,40,130,20,130,20,120,10,120,10,100,20,100,20,90,30,90,30,80,40,80,40,70,60,70,60,60,70,60,70,50,80,50,80,40,90,40,90,30,100,30, fill="black", outline='black')
poly.create_polygon(
100,40,90,40,90,50,80,50,80,60,70,60,70,70,60,70,60,80,40,80,40,90,30,90,30,100,20,100,
    20,120,50,120,50,140,40,140,40,160,50,160,50,170,
    70,170,70,180,70,200,60,200,60,210,50,210,50,280,
    60,280,60,290,80,290,80,300,130,300,130,290,150,290,150,280,160,280,160,210,
    150,210,150,200,140,200,140,170,160,170,160,160,160,170,160,160,
    170,160,170,140,160,140,160,120,190,120,190,100,
    180,100,180,90,170,90,170,80,150,80,150,70,140,70,140,60,130,60,130,50,120,50,120,40,110,40,
    fill="red", outline='red')
poly.create_polygon(100,0,100,90,90,90,90,110,100,110,100,120,110,120,110,110,120,110,120,100,110,100,110,0,fill="white", outline='white')

poly.create_polygon(60,270,60,230,70,230,70,220,90,220,90,230,100,230,100,240,90,240,90,250,80,250,80,260,70,260,70,270,
fill="black", outline='black')
poly.create_polygon(70,250,70,230,90,230,90,240,80,240,80,250,fill="white", outline='white')

poly.create_polygon(150,270,150,230,140,230,140,220,120,220,120,230,110,230,110,240,120,240,120,250,130,250,130,260,140,260,140,270,fill="black", outline='black')
poly.create_polygon(140,250,140,230,120,230,120,240,130,240,130,250,fill="white", outline='white')
poly.create_polygon(20,120,20,100,30,100,30,90,40,90,40,80,50,80,50,90,60,90,60,110,50,110,50,120,fill="blue", outline='blue')
poly.create_polygon(190,120,190,100,180,100,180,90,170,90,170,80,160,80,160,90,150,90,150,110,160,110,160,120,fill="blue", outline='blue')
poly.create_polygon(80,130,80,140,70,140,70,150,60,150,60,140,70,140,70,130,fill="blue", outline='blue')
poly.create_polygon(80,150,80,160,70,160,70,150,fill="blue", outline='blue')
poly.create_polygon(130,130,140,130,140,140,150,140,150,150,140,150,140,140,130,140,fill="blue", outline='blue')
poly.create_polygon(90,90,90,100,80,100,80,90,fill="blue", outline='blue')
poly.create_polygon(110,90,110,100,130,100,130,90,fill="blue", outline='blue')
poly.create_polygon(130,140,130,150,140,150,140,160,130,160,130,150,120,150,120,140,fill="blue", outline='blue')
poly.create_polygon(50,120,50,110,60,110,60,100,70,100,70,90,80,90,80,80,100,80,100,90,80,90,80,100,90,100,90,110,100,110,100,130,90,130,90,140,80,140,80,150,70,150,70,160,60,160,60,150,70,150,70,140,80,140,80,130,90,130,90,110,60,110,60,120,
fill="black", outline='black')
poly.create_polygon(160,120,160,110,150,110,150,100,140,100,140,90,130,90,130,80,110,80,110,90,130,90,130,100,120,100,120,110,110,110,110,130,120,130,120,140,130,140,130,150,140,150,140,160,150,160,150,150,140,150,140,140,130,140,130,130,120,130,120,110,150,110,150,120,
fill="black", outline='black')

poly.create_polygon(70,180,90,180,90,170,120,170,120,180,140,180,140,190,120,190,120,180,90,180,90,190,70,190,
fill="black", outline='black')


boton2 = Button(VH, text="Cerrar", bg="Red", command=lambda: ejecutar(ocultar(VH)))
boton2.pack()
boton3 = Button(VH2, text="Cerrar", bg="blue", command=lambda: ejecutar(ocultar(VH2)))
boton3.pack()
boton4 = Button(VH3, text="Cerrar", bg="#E0ECFF", command=lambda: ejecutar(ocultar(VH3)))
boton4.pack()
boton5 = Button(VH4, text="Cerrar", bg="Red", command=lambda: ejecutar(ocultar(VH4)))
boton5.pack()
boton6 = Button(VH5, text="Cerrar", bg="pink", command=lambda: ejecutar(ocultar(VH5)))
boton6.pack()
boton7 = Button(VH6, text="Cerrar", bg="purple", command=lambda: ejecutar(ocultar(VH6)))
boton7.pack()
boton8 = Button(VH7, text="Cerrar", bg="purple", command=lambda: ejecutar(ocultar(VH7)))
boton8.pack()
boton9 = Button(VH8, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH8)))
boton9.pack()
boton10 = Button(VH9, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH9)))
boton10.pack()
boton11 = Button(VH10, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH10)))
boton11.pack()
boton12 = Button(VH11, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH11)))
boton12.pack()
boton13 = Button(VH12, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH12)))
boton13.pack()
boton14 = Button(VH13, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH13)))
boton14.pack()
boton15 = Button(VH14, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH14)))
boton15.pack()
boton16 = Button(VH15, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH15)))
boton16.pack()
boton17 = Button(VH16, text="Cerrar", bg="darkred", command=lambda: ejecutar(ocultar(VH16)))
boton17.pack()
boton18 = Button(VH17, text="Cerrar", bg="orange", command=lambda: ejecutar(ocultar(VH17)))
boton18.pack()

b1 = Button(VentanaPrincipal, text="Mostrar circulo", command=lambda: ejecutar(Circulo(VentanaPrincipal)))
b1.grid(row=1, column=1)

b2 = Button(VentanaPrincipal, text="Mostrar rectangulo", command=lambda: ejecutar(Rectangulo(VentanaPrincipal)))
b2.grid(row=1, column=2)

b3 = Button(VentanaPrincipal, text="Mostrar linea", command=lambda: ejecutar(Linea(VentanaPrincipal)))
b3.grid(row=1, column=4)

b4 = Button(VentanaPrincipal, text="Mostrar arco", command=lambda: ejecutar(Arco(VentanaPrincipal)))
b4.grid(row=1, column=3)

b5 = Button(VentanaPrincipal, text="Mostrar Queso", command=lambda: ejecutar(Quesadilla(VentanaPrincipal)))
b5.grid(row=1, column=5)

b6 = Button(VentanaPrincipal, text="Mostrar queso y arco", command=lambda: ejecutar(Fusion(VentanaPrincipal)))
b6.grid(row=1, column=6)

b7 = Button(VentanaPrincipal, text="Mostrar texto", command=lambda: ejecutar(Texto(VentanaPrincipal)))
b7.grid(row=1, column=7)

b8 = Button(VentanaPrincipal, text="Mostrar poligono", command=lambda: ejecutar(Poligono(VentanaPrincipal)))
b8.grid(row=1, column=8)

b9 = Button(VentanaPrincipal, text="Mostrar corazon", command=lambda: ejecutar(Corazon(VentanaPrincipal)))
b9.grid(row=1, column=9)

b10 = Button(VentanaPrincipal, text="Mostrar perro", command=lambda: ejecutar(Perro(VentanaPrincipal)))
b10.grid(row=1, column=10)

b11 = Button(VentanaPrincipal, text="Mostrar conejo", command=lambda: ejecutar(Conejo(VentanaPrincipal)))
b11.grid(row=2, column=1)

b12 = Button(VentanaPrincipal, text="Mostrar figura", command=lambda: ejecutar(figura(VentanaPrincipal)))
b12.grid(row=2, column=2)

b13 = Button(VentanaPrincipal, text="Mostrar gato", command=lambda: ejecutar(gato(VentanaPrincipal)))
b13.grid(row=2, column=3)

b14 = Button(VentanaPrincipal, text="Mostrar Mario", command=lambda: ejecutar(Mario(VentanaPrincipal)))
b14.grid(row=2, column=4)

b15 = Button(VentanaPrincipal, text="Mostrar Space Invader", command=lambda: ejecutar(Space(VentanaPrincipal)))
b15.grid(row=2, column=5)

b16 = Button(VentanaPrincipal, text="Logo Mitsubishi", command=lambda: ejecutar(Mitsubishi(VentanaPrincipal)))
b16.grid(row=2, column=6)

b17 = Button(VentanaPrincipal, text="Mostrar Spider man", command=lambda: ejecutar(spider(VentanaPrincipal)))
b17.grid(row=2, column=7)






VH17.withdraw()
VH16.withdraw()
VH15.withdraw()
VH14.withdraw()
VH13.withdraw()
VH12.withdraw()
VH11.withdraw()
VH10.withdraw()
VH9.withdraw()
VH8.withdraw()
VH7.withdraw()
VH6.withdraw()
VH5.withdraw()
VH4.withdraw()
VH3.withdraw()
VH2.withdraw()
VH.withdraw()
VentanaPrincipal.mainloop()

Comentarios

Entradas populares de este blog

Registro de un procesador.