def METHOD_NAME(self):
    actionDict = self.actionDict()
    layout = self.layout()
    row = layout.rowCount()
    columns = 5
    for num, name in enumerate(self._names, row*columns):
        b = Button(self, name, actionDict[name])
        layout.addWidget(b, *divmod(num, columns))