⬇️ CODIGO AQUI :
from tkinter import Tk, Button
def onClosing():
root.destroy()
print("Ventana cerrada")
def press():
print("Led Encendido")
root = Tk()
root.title("Uso de Boton")
root.geometry("400x400")
root.protocol("WM_DELETE_WINDOW",onClosing)
button = Button(root,text="Encender", command=press, background="green", foreground="white")
button.pack()
root.mainloop()
🛒 ENCUENTRE TODOS LOS MATERIALES EN NUESTRA TIENDA
👉 https://roboticoss.com/tienda/
👨🏼💻 DESARROLLA TUS HABILIDADES CON MIS CURSOS
👉 https://roboticoss.com/cursos/
👨🏫 ASESORIA PERSONALIZADA
👉 https://roboticoss.com/asesoria/
✅ No olvides darle LIKE, SUSCRIBIRSE y COMPARTIR!!
🔴 Únete a nuestras redes sociales
✅ YouTube: https://bit.ly/RoboticossYouTube
✅ Sitio web: https://roboticoss.com
✅ TikTok: https://bit.ly/RoboticossTikTok
✅ Facebook: https://bit.ly/RoboticossFacebook
✅ Instagram: Instagram: https://bit.ly/RoboticossInstagram
On this page of the site you can watch the video online Interfaces graficas con Python 2 : Widget Botón with a duration of hours minute second in good quality, which was uploaded by the user Edison R. Sasig 01 January 1970, share the link with friends and acquaintances, this video has already been watched 1,197 times on youtube and it was liked by 21 viewers. Enjoy your viewing!