'Compute the width of the widget according to each icon width.'

def calculate_length(self):

    return (sum((self.icons_widths[prg['name']] for prg in self.progs.values())) + (self.padding * (len(self.progs) + 1)))
