File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 44# Youku video tutorial: http://i.youku.com/pythontutorial
55
66import tkinter as tk
7+ import tkinter .messagebox
78
89window = tk .Tk ()
910window .title ('my window' )
1011window .geometry ('200x200' )
1112
1213def 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'
1617 #print(tk.messagebox.askquestion(title='Hi', message='hahahaha')) # return 'yes' , 'no'
1718 #print(tk.messagebox.askyesno(title='Hi', message='hahahaha')) # return True, False
1819 print (tk .messagebox .asktrycancel (title = 'Hi' , message = 'hahahaha' )) # return True, False
You can’t perform that action at this time.
0 commit comments