Skip to content

Commit

Permalink
Merge pull request #57 from JNingWei/master
Browse files Browse the repository at this point in the history
Fix a bug "AttributeError"; Add three annotations.
  • Loading branch information
MorvanZhou authored Oct 20, 2017
2 parents 782322a + 409edaa commit 44bf664
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tkinterTUT/tk11_msgbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
# Youku video tutorial: http://i.youku.com/pythontutorial

import tkinter as tk
import tkinter.messagebox

window = tk.Tk()
window.title('my window')
window.geometry('200x200')

def hit_me():
#tk.messagebox.showinfo(title='Hi', message='hahahaha')
#tk.messagebox.showwarning(title='Hi', message='nononono')
#tk.messagebox.showerror(title='Hi', message='No!! never')
#tk.messagebox.showinfo(title='Hi', message='hahahaha') # return 'ok'
#tk.messagebox.showwarning(title='Hi', message='nononono') # return 'ok'
#tk.messagebox.showerror(title='Hi', message='No!! never') # return 'ok'
#print(tk.messagebox.askquestion(title='Hi', message='hahahaha')) # return 'yes' , 'no'
#print(tk.messagebox.askyesno(title='Hi', message='hahahaha')) # return True, False
print(tk.messagebox.asktrycancel(title='Hi', message='hahahaha')) # return True, False
Expand Down

0 comments on commit 44bf664

Please sign in to comment.