Exemplo n.º 1
0
def create_new_doc(config):
    doc = sk_model.SKDocument(config)
    layout = sk_model.SKLayout()
    doc.childs.append(layout)
    doc.layout = layout
    doc.childs.append(sk_model.SKLayer())
    grid = sk_model.SKGrid()
    doc.childs.append(grid)
    doc.grid = grid
    glayer = sk_model.SKGuideLayer()
    doc.childs.append(glayer)
    doc.guidelayer = glayer
    return doc
Exemplo n.º 2
0
 def grid(self, grid, visibility, grid_color, layer_name='Grid'):
     obj = sk_model.SKGrid(grid, visibility, grid_color, layer_name)
     self.add_object(obj, self.model)
     self.model.grid = obj