def layoutHorizontally(self, children, separation=0):
    left = self.left
    cols = self.cols
    for view in children:
        preferredCols = view.preferredSize(self.rows, max(0, cols))[1]
        view.reshape(self.top, left, self.rows, max(0, min(cols, preferredCols)))
        delta = (view.cols + separation)
        left += delta
        cols -= delta
def layoutHorizontally(self, children, separation=0):
    left = self.left
    cols = self.cols
    for view in children:
        preferredCols = view.preferredSize(self.rows, max(0, cols))[1]
        view.reshape(self.top, left, self.rows, max(0, min(cols, preferredCols)))
        delta = (view.cols + separation)
        left += delta
        cols -= delta