(self, text, index=-1)
return self._add_block(text_block, index)
Adds a text block to the story.

        Args:
            text: the string to add to the story.
            index: an integer, if supplied determines where the new
                block will be added. If not supplied it will be
                appended at the end.

        Returns:
            Boolean that indicates whether block was successfully added.
Adds a text block to the story.
Adds a text block to the story .
def add_text(self, text, index=-1):
        """Adds a text block to the story.

        Args:
            text: the string to add to the story.
            index: an integer, if supplied determines where the new
                block will be added. If not supplied it will be
                appended at the end.

        Returns:
            Boolean that indicates whether block was successfully added.
        """
        if index == -1:
            index = len(self._blocks)
        text_block = TextBlock(self, index)
        text_block.feed(text)

        return self._add_block(text_block, index)
def add_text ( self , text , index = - 1 ) : if index == - 1 : index = len ( self . _blocks ) text_block = TextBlock ( self , index ) text_block . feed ( text ) return self . _add_block ( text_block , index )