'Set the text and text properties in the label. Accepts optional arguments for auto-generating
a CSS style string:
**Style Arguments:**
color                (str) example: \'CCFF00\'
size                 (str) example: \'8pt\'
bold                 (bool)
italic               (bool)'

def setText(self, text, **args):

    self.text = text
    opts = self.opts
    for k in args:
        opts[k] = args[k]
    optlist = []
    color = self.opts['color']
    if (color is None):
        color = getConfigOption('foreground')
    color = fn.mkColor(color)
    optlist.append(('color:    #' + fn.colorStr(color)[:6]))
    if ('size' in opts):
        optlist.append(('font-size:    ' + opts['size']))
    if (('bold' in opts) and (opts['bold'] in [True, False])):
        optlist.append(('font-weight:    ' + {True: 'bold', False: 'normal'}[opts['bold']]))
    if (('italic' in opts) and (opts['italic'] in [True, False])):
        optlist.append(('font-style:    ' + {True: 'italic', False: 'normal'}[opts['italic']]))
    full = ("<span    style='%s'>%s</span>" % (';    '.join(optlist), text))
    self.item.setHtml(full)
    self.updateMin()
    self.resizeEvent(None)
    self.updateGeometry()
