Skip to content

Commit 10e6ade

Browse files
committed
add messagebox.askyesnocancel(title="Hi",message="haha")
1 parent db16863 commit 10e6ade

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tkinterTUT/tk11_msgbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def hit_me():
1717
#print(tk.messagebox.askyesno(title='Hi', message='hahahaha')) # return True, False
1818
print(tk.messagebox.asktrycancel(title='Hi', message='hahahaha')) # return True, False
1919
print(tk.messagebox.askokcancel(title='Hi', message='hahahaha')) # return True, False
20+
print(tk.messagebox.askyesnocancel(title="Hi", message="haha")) # return, True, False, None
2021

2122
tk.Button(window, text='hit me', command=hit_me).pack()
2223
window.mainloop()

0 commit comments

Comments
 (0)