This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| respuesta = messagebox.askquestion("Mi diálogo emergente", "¿Te gusta mi programa?") | |
| messagebox.showinfo("Respuesta", "La respuesta es: " + respuesta) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| respuesta = messagebox.askyesno("Mi dialogo emergente", "Te gusta mi programa?") | |
| if respuesta: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| respuesta = messagebox.askyesno("Mi dialogo emergente", "Te gusta mi programa?") | |
| if respuesta: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| respuesta = messagebox.askyesno("Mi dialogo emergente", "Te gusta mi programa?") | |
| if respuesta: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| respuesta = messagebox.askquestion("Mi dialogo emergente", "Te gusta mi programa?") | |
| if respuesta == "yes": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| respuesta = messagebox.askyesno("Mi dialogo emergente", "Te gusta mi programa?") | |
| if respuesta: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| messagebox.showinfo("Mi diálogo emergente", mi_entrada.get()) | |
| mi_ventana = tkinter.Tk() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| messagebox.showinfo(mi_entrada_2.get(), mi_entrada.get()) | |
| mi_ventana = tkinter.Tk() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| if (mi_entrada_2.get() == "" or mi_entrada.get() == "") | |
| messagebox.showwarning("Advertencia", "Alguno de los campos está vacío"): | |
| else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| import tkinter | |
| from tkinter import messagebox | |
| def accion_de_mi_boton(): | |
| mi_texto = mi_entrada.get() | |
| print(mi_texto) |