Programa Python Poligonos
# -*- coding: utf-8 -*- from Tkinter import * def funcion (seleccion , figura): vs = Toplevel() vs.configure( bg = "black" ) vs.title(figura) if seleccion == 2 : panel = Canvas(vs , width = 250 , height = 500 , bg = 'gray' ) panel.pack() panel.create_polygon( 6 , 126 , 22 , 122 , 82 , 124 , 82 , 324 , 14 , 330 , 6 , 318 , width = 1 , fill = "#080008" ) panel.create_polygon( 186 , 146 , 232 , 146 , 232 , 312 , 188 , 314 , width = 1 , fill = "#2a0027" ) 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 = "#080008" ) panel.create_polygon( 63 , 470 , 63 , 442 , 88 , 457 , 185 , 441 , 185 , 468 , 88 , 485 , width = 1 , fill = "#2a0027" ) ...