Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8
- from tkinter import *
- ventana =Frame (height=500,width=400)
- ventana.pack(padx=20,pady=20)
- etiqueta =Label(text="Nombre : ",font=("Verdana",15)).place(x=0,y=10)
- etiqueta2 =Label(text="Apellido : ",font=("Verdana",15)).place(x=0,y=40)
- entrada=StringVar()
- entrada.set("Tony")
- campo =Entry(ventana,textvariable=entrada,font=("Verdana",15)).place(x=90,y=10)
- entrada2=StringVar()
- entrada2.set("Villanueva")
- campo =Entry(ventana,textvariable=entrada2,font=("Verdana",15),background="yellow").place(x=90,y=40)
- boton=Button (ventana,text="Aceptar",font=("Verdana",15),background="green").place(x=0,y=100)
- boton=Button (ventana,text="Cancelar",font=("Verdana",15),background="red").place(x=0,y=15)
- ventana.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement