code: def __buttonEvent(event):
      
      global  boxRoot, __widgetTexts, __replyButtonText
      __replyButtonText = __widgetTexts[event.widget]
      boxRoot.quit()
docs: Handle an event that is generated by a person clicking a button.