in reply to Stopping the Program
What you want is a modal dialog. In Tk, you can achieve this using Tk::Dialog (text and buttons only) or Tk::DialogBox (allows you to add any widgets you want).