1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | #!/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() |
lunes, 12 de noviembre de 2018
Caja de dialogo
Suscribirse a:
Comentarios de la entrada (Atom)
No hay comentarios.:
Publicar un comentario