Pythona = 0for i in xrange(0, 3): a += self.Table.horizontalHeader().sectionSize(i)a += 19self.Table.setMinimumWidth(a)self.Table.setMaximumWidth(a)