This file contains 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/python | |
# -*- coding: utf-8 -*- | |
# www.pythondiario.com | |
from Tkinter import * | |
from tkMessageBox import * | |
def pregunta(): | |
showerror("Pregunta", "Discuple, no hay preguntas disponibles") | |
def devolucion(): | |
if askyesno('Verificar', '¿Realmente quiere salir?'): | |
showwarning('Si', 'No está implementado') | |
else: | |
showinfo('No', 'Salir fue cancelado') | |
Button(text='Salir', command=devolucion).pack(fill=X) | |
Button(text='Pregunta', command=pregunta).pack(fill=X) | |
mainloop() |
No hay comentarios:
Publicar un comentario