from Tkinter import *
from tkMessageBox import *
import Pmw

class App:
    def __init__(self, master):
        self.result = Pmw.EntryField(master, entry_width=8,
                                     value='',
                                     label_text='Returned value:  ',
                                     labelpos=W, labelmargin=1)
	self.result.pack(padx=15, pady=15)

root = Tk()
question = App(root)

button = askquestion("Question:",
                   "Oh Dear, did somebody\nsay mattress to Mr Lambert?",
                   default=NO)
question.result.setentry(button)

root.mainloop()
