pydoc.HTMLDoc.section

HTMLDoc.section(title, fgcol, bgcol, contents, width=6, prelude='', marginalia=None, gap=' ')[source]

Format a section with a heading.