def add(self, string: (str, list)):
if len(self._entries) == <NUM_LIT:1>:<EOL><INDENT>self._entries[<NUM_LIT:0>].delete(<NUM_LIT:0>, '<STR_LIT:end>')<EOL>self._entries[<NUM_LIT:0>].insert(<NUM_LIT:0>, string)<EOL><DEDENT>else:<EOL><INDENT>if len(string) != len(self._entries):<EOL><INDENT>raise ValueError('<STR_LIT>'<EOL>'<STR_LIT>')<EOL><DEDENT>for i, e in enumerate(self._entries):<EOL><INDENT>self._entries[i].delete(<NUM_LIT:0>, '<STR_LIT:end>')<EOL>self._entries[i].insert(<NUM_LIT:0>, string[i])<EOL><DEDENT><DEDENT>
Clear the contents of the entry field and
insert the contents of string.

:param string: an str containing the text to display
:return: