parameters: (self)
return_statement: return self.save(prompt_for_confirmation=self.parent.confirm_on_save)
docstring: Confirm the widget can be closed. If the editor contents are modified then
          a user can interject and cancel closing.
  
          :return: True if closing was considered successful, false otherwise
docstring_summary: Confirm the widget can be closed. If the editor contents are modified then
          a user can interject and cancel closing.
docstring_tokens: Confirm the widget can be closed . If the editor contents are modified then a user can interject and cancel closing .
function: def confirm_close(self):
          """Confirm the widget can be closed. If the editor contents are modified then
          a user can interject and cancel closing.
  
          :return: True if closing was considered successful, false otherwise
          """
          return self.save(prompt_for_confirmation=self.parent.confirm_on_save)
function_tokens: def confirm_close ( self ) : return self . save ( prompt_for_confirmation = self . parent . confirm_on_save )