Exemplo n.º 1
0
    def test_pantone(self):
        from Goulib.table import Table,Cell
        from Goulib.itertools2 import reshape

        t=[Cell(name,style={'background-color':pantone[name].hex}) for name in sorted(pantone)]
        t=Table(reshape(t,(0,10)))
        with open(path+'\\results\\colors.pantone.html', 'w') as f:
            f.write(t.html())
Exemplo n.º 2
0
    def test_pantone(self):
        from Goulib.table import Table, Cell
        from Goulib.itertools2 import reshape

        t = [
            Cell(name, style={'background-color': pantone[name].hex})
            for name in sorted(pantone)
        ]
        t = Table(reshape(t, (0, 10)))
        with open(path + '\\results\\colors.pantone.html', 'w') as f:
            f.write(t.html())