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

All Samples(5)  |  Call(4)  |  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
        self.project_tree.add_species(empty)
        # add standard parameter
        param = Parameter(name='lattice_size', value='40 40 1')
        self.project_tree.add_parameter(param)
 
        param = Parameter(name='print_every', value='1.e5')
        self.project_tree.add_parameter(param)
 
        param = Parameter(name='total_steps', value='1.e7')
    def on_btn_add_parameter__clicked(self, _button):
        new_parameter = Parameter(name='', value='')
        self.project_tree.undo_stack.start_new_action('Add parameter',
                                                      new_parameter)
        self.project_tree.add_parameter(new_parameter)