code: def boolbox(msg="Shall I continue?", title=" ",
              choices=("[Y]es", "[N]o"), image=None,
              default_choice='Yes', cancel_choice='No'):
      
      if len(choices) != 2:
          raise AssertionError(
              'boolbox takes exactly 2 choices!  Consider using indexbox instead'
          )
  
      reply = bb.buttonbox(msg=msg,
                           title=title,
                           choices=choices,
                           image=image,
                           default_choice=default_choice,
                           cancel_choice=cancel_choice)
      if reply == choices[0]:
          return True
      else:
          return False
docs: Display a boolean msgbox.
  
      The returned value is calculated this way::
  
          if the first choice is chosen, or if the dialog is cancelled:
              returns True
          else:
              returns False
  
      :param str msg: the msg to be displayed
      :param str title: the window title
      :param list choices: a list or tuple of the choices to be displayed
      :param str image: Filename of image to display
      :param str default_choice: The choice you want highlighted
        when the gui appears
      :param str cancel_choice: If the user presses the 'X' close, which button
        should be pressed
      :return: True if first button pressed or dialog is cancelled, False if
        second button is pressed