Files
Python-2018/alertes tkinter.py
2019-01-20 00:55:05 +01:00

15 lines
333 B
Python

from tkinter.messagebox import *
window = Tk()
def callback():
if askyesno('Titre 1', 'Êtes-vous sûr de vouloir faire ça?'):
showwarning('Titre 2', 'Tant pis...')
else:
showinfo('Titre 3', 'Vous avez peur!')
showerror("Titre 4", "Aha")
Button(text='Action', command=callback).pack()
mainloop()