Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env py#!/usr/bin/env python
- # -*- coding: utf-8
- from tkinter import *
- """ funciones asociadas a los botones , respuesta en el terminal """
- def aceptar():
- print ("Acepta")
- def cancelar():
- print ("Cancela")
- ventana =Frame ()
- ventana.pack(padx=20,pady=20)
- """ creo los dos botones en tkinter"""
- botonAceptar=Button (ventana,text="Aceptar",font=("Verdana",15),background="green",command=aceptar).pack()
- botonCancelar=Button (ventana,text="Cancelar",font=("Verdana",15),background="red",command=cancelar).pack()
- ventana.mainloop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement