Question dialog : Common Dialog « GUI Tk « Python

Home
Python
1.2D
2.Application
3.Buildin Function
4.Class
5.Data Structure
6.Data Type
7.Database
8.Development
9.Dictionary
10.Event
11.Exception
12.File
13.Function
14.GUI Pmw
15.GUI Tk
16.Language Basics
17.List
18.Math
19.Network
20.String
21.System
22.Thread
23.Tuple
24.Utility
25.XML
Python » GUI Tk » Common DialogScreenshots 
Question dialog
Question dialog


from Tkinter import *
from tkMessageBox import *
from tkFileDialog   import askopenfilename      

def callback():
    askquestion('Warning', 'Line "quotation"\n Line ?')
    
    
errmsg = 'Error!'
Button(text='Quit', command=callback).pack(fill=X)
Button(text='Spam', command=(lambda: showerror('Spam', errmsg))).pack(fill=X)
mainloop()


           
       
Related examples in the same category
1.OK cancel dialogOK cancel dialog
2.Error dialogError dialog
3.Entry dialogEntry dialog
4.File open dialogFile open dialog
5.Color chooser dialogColor chooser dialog
6.Buildin dialogs: warning dialog, info dialog and error dialogBuildin dialogs: warning dialog, info dialog and error dialog
7.YES NO CANCEL dialogYES NO CANCEL dialog
8.Set ColorSet Color
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.