def setLabelFromTimeDelta(label, value):
    """
    @type value: datetime.timedelta
    """
    if not value == None:
        hours = value.seconds // 3600
        mins = value.seconds % 3600 // 60
        seconds = value.seconds % 3600 % 60
        hours = hours + value.days * 24
        label.setText('%s:%s:%s' % (repr(hours), repr(mins), repr(seconds)))
    else:
        label.setText('')
