'Create a grid of consoles in a frame.'

def createConsoles(self, parent, nodes, width, title):

    f = Frame(parent)
    consoles = []
    index = 0
    for node in nodes:
        console = Console(f, self.net, node, title=title)
        consoles.append(console)
        row = (index / width)
        column = (index % width)
        console.grid(row=row, column=column, sticky='nsew')
        index += 1
        f.rowconfigure(row, weight=1)
        f.columnconfigure(column, weight=1)
    return (f, consoles)
