1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from Tkinter import * root = Tk() root.geometry("500x500") root.title("Peliculas") def fun(): x = aux2.get() pelis.append(x) lol = OptionMenu(root, aux, *pelis).place(x=350, y=140) et1 = Label(root, text = "Escribe el titulo de una pelicula").place(x=100,y=100) et2 = Label(root, text = "Peliculas").place(x=350,y=100) aux=StringVar() aux.set("") aux2=StringVar() pelis = [""] lol = OptionMenu(root,aux,*pelis).place(x=350,y=140) c1 = Entry(root, textvariable =aux2).place(x=100,y=140) b1 = Button(root, text = "Ingresar", command =fun).place(x=100, y=170) root.mainloop() |
domingo, 25 de noviembre de 2018
Ingresar pelicula P13
Suscribirse a:
Comentarios de la entrada (Atom)

No hay comentarios.:
Publicar un comentario