polite/configuration.py
def make_head_foot_bar(cls, header_title, bar_width, bar_char='*'):

        '''Make header and footer strings consisting of a bar of characters of
        fixed width, with a title embeded in the header bar.

        Args:
            header_title (str): The title to be placed in the header bar.
            bar_width (int): The number of characters in the header and
              footer.
            bar_char (str, optional): Character to use for the bar. Default is
              "*".

        Returns:
            tuple: Tuple containing the strings (header, footer).
        '''

        # Build the header and footer
        title_space = ' {} '.format(header_title)
        header = "{0:{1}^{2}}".format(title_space, bar_char[0], bar_width)
        footer = bar_char * bar_width

        return (header, footer)
Make header and footer strings consisting of a bar of characters of
        fixed width, with a title embeded in the header bar.

        Args:
            header_title (str): The title to be placed in the header bar.
            bar_width (int): The number of characters in the header and
              footer.
            bar_char (str, optional): Character to use for the bar. Default is
              "*".

        Returns:
            tuple: Tuple containing the strings (header, footer).
        
Make header and footer strings consisting of a bar of characters of
fixed width, with a title embeded in the header bar.
Make header and footer strings consisting of a bar of characters of fixed width with a title embeded in the header bar .
def make_head_foot_bar(cls, header_title, bar_width, bar_char='*'):
        title_space = ' {} '.format(header_title)
        header = "{0:{1}^{2}}".format(title_space, bar_char[0], bar_width)
        footer = bar_char * bar_width
        return (header, footer)
def make_head_foot_bar ( cls , header_title , bar_width , bar_char = '*' ) : title_space = ' {} ' . format ( header_title ) header = "{0:{1}^{2}}" . format ( title_space , bar_char [ 0 ] , bar_width ) footer = bar_char * bar_width return ( header , footer )
Make header and footer strings consisting of a bar of characters of
fixed width, with a title embeded in the header bar.
Make header and footer strings consisting of a bar of characters of fixed width with a title embeded in the header bar .
'''Make header and footer strings consisting of a bar of characters of
        fixed width, with a title embeded in the header bar.

        Args:
            header_title (str): The title to be placed in the header bar.
            bar_width (int): The number of characters in the header and
              footer.
            bar_char (str, optional): Character to use for the bar. Default is
              "*".

        Returns:
            tuple: Tuple containing the strings (header, footer).
        ''' # Build the header and footer
Tuple containing the strings (header, footer).
Tuple containing the strings ( header footer ) .
tuple
cls
header_title
The title to be placed in the header bar.
The title to be placed in the header bar .
bar_width
The number of characters in the header and
footer.
The number of characters in the header and footer .
bar_char
Character to use for the bar. Default is
"*".
Character to use for the bar . Default is " * " .