def _get_table_model(option_string="", sample_thickness=8.0):
     table_index_model = TableIndexModel("SANS2D00022024", "", "", "", "", "", "", "", "",
                                         "", "", "",options_column_string=option_string,
                                         sample_thickness=sample_thickness)
     table_model = TableModel()
     table_model.add_table_entry_no_thread_or_signal(0, table_index_model)
     return table_model
Ejemplo n.º 2
0
def create_state(state_model_with_view_update, file, period, facility):
    table_row = TableIndexModel(file, period, '', '', '', '', '', '', '', '', '', '')
    table = TableModel()
    table.add_table_entry_no_thread_or_signal(0, table_row)

    gui_state_director = GuiStateDirector(table, state_model_with_view_update, facility)

    state = gui_state_director.create_state(0)

    return state
Ejemplo n.º 3
0
def create_state(state_model_with_view_update, file, period, facility):
    table_row = TableIndexModel(file, period, '', '', '', '', '', '', '', '', '', '')
    table = TableModel()
    table.add_table_entry_no_thread_or_signal(0, table_row)

    gui_state_director = GuiStateDirector(table, state_model_with_view_update, facility)

    state = gui_state_director.create_state(0)

    return state
Ejemplo n.º 4
0
 def _get_table_model(option_string="", sample_thickness=8.0):
     table_index_model = TableIndexModel(
         "SANS2D00022024",
         "",
         "",
         "",
         "",
         "",
         "",
         "",
         "",
         "",
         "",
         "",
         options_column_string=option_string,
         sample_thickness=sample_thickness)
     table_model = TableModel()
     table_model.add_table_entry_no_thread_or_signal(0, table_index_model)
     return table_model