'Set a text.
Args:
which: Which text to set, a self.Text instance.
text: The text to set.'

def set_text(self, which, text):

    log.statusbar.debug("Setting    {}    text    to    '{}'.".format(which.name, text))
    if (which is self.Text.normal):
        self._normaltext = text
    elif (which is self.Text.temp):
        self._temptext = text
    else:
        raise ValueError('Invalid    value    {}    for    which!'.format(which))
    self.update_text()
