File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 4
4
# Youku video tutorial: http://i.youku.com/pythontutorial
5
5
6
6
import tkinter as tk
7
+ import tkinter .messagebox
7
8
8
9
window = tk .Tk ()
9
10
window .title ('my window' )
10
11
window .geometry ('200x200' )
11
12
12
13
def hit_me ():
13
- #tk.messagebox.showinfo(title='Hi', message='hahahaha')
14
- #tk.messagebox.showwarning(title='Hi', message='nononono')
15
- #tk.messagebox.showerror(title='Hi', message='No!! never')
14
+ #tk.messagebox.showinfo(title='Hi', message='hahahaha') # return 'ok'
15
+ #tk.messagebox.showwarning(title='Hi', message='nononono') # return 'ok'
16
+ #tk.messagebox.showerror(title='Hi', message='No!! never') # return 'ok'
16
17
#print(tk.messagebox.askquestion(title='Hi', message='hahahaha')) # return 'yes' , 'no'
17
18
#print(tk.messagebox.askyesno(title='Hi', message='hahahaha')) # return True, False
18
19
print (tk .messagebox .asktrycancel (title = 'Hi' , message = 'hahahaha' )) # return True, False
You can’t perform that action at this time.
0 commit comments