'Convenience function allowing multiple labels and/or title to be set in one call.
Keyword arguments can be \'title\', \'left\', \'bottom\', \'right\', or \'top\'.
Values may be strings or a tuple of arguments to pass to setLabel.'

def setLabels(self, **kwds):

    for (k, v) in kwds.items():
        if (k == 'title'):
            self.setTitle(v)
        else:
            if isinstance(v, basestring):
                v = (v,)
            self.setLabel(k, *v)
