def set_value(self, value: str):
self.clear()<EOL>if '<STR_LIT:.>' in value:<EOL><INDENT>self._segments['<STR_LIT>'].configure(background=self._color)<EOL><DEDENT>if value in ['<STR_LIT:0>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:d>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:e>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:f>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT:1>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT:2>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:e>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:d>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT:3>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:d>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT:4>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:f>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT:5>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:f>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:d>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:f>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:d>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:e>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:d>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:e>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:f>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>self._segments['<STR_LIT:a>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:b>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:c>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:f>'].configure(background=self._color)<EOL>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL><DEDENT>elif value in ['<STR_LIT:->']:<EOL><INDENT>self._segments['<STR_LIT:g>'].configure(background=self._color)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(value))<EOL><DEDENT>
Sets the value of the 7-segment display
:param value: the desired value
:return: None