Can anybody help me out in how to activate 'close' button of askquestion() of tkMessageBox??
By 'activate', do you mean make it so the user can close the message box by clicking the close ('X') button?
I do not think it is possible using tkMessageBox. I guess your best bet is to implement a dialog box with this functionality yourself.
BTW: What should askquestion() return when the user closes the dialog box?
tkMessageBox