Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/p/y/python-kmos-0.3.6/kmos/gui/__init__.py   python-kmos(Download)
import os
 
from kmos.types import Project, Layer, LayerList, Meta, OutputList, \
                       Parameter, Process, ProcessList, SpeciesList, \
                       OutputItem, Species
        # add layer
        default_layer_name = 'default'
        default_layer = Layer(name=default_layer_name,)
        self.project_tree.add_layer(default_layer)
        self.project_tree.lattice.default_layer = default_layer_name
            self.toast('Only 2d supported')
            return
        new_layer = Layer()
        self.project_tree.undo_stack.start_new_action('Add layer', new_layer)
        self.project_tree.add_layer(new_layer)