15 lines
333 B
Python
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()
|