#NEWLINE# def set_heading( self , col , val , **kwargs ) : #NEWLINE# #INDENT# 'Set heading at column <col> (origin 1) to <val>.' #NEWLINE# val = check_object ( val ) #NEWLINE# for inter in range ( ( kwargs - len ( self . _headings ) ) ) : #NEWLINE# #INDENT# self . _headings . append ( self . dtd . Th ( ** kwargs ) ) #NEWLINE# #UNINDENT# th = self . _headings [ ( col - 1 ) ] #NEWLINE# th . append ( val ) #NEWLINE# return th