Пример #1
0
                                              operations=[],
                                              editable=False),
                         show_label=False),
                    Item('object.matrix.matrix',
                         editor=TabularEditor(adapter=EigenMatrixAdapter(),
                                              operations=[],
                                              editable=False),
                         show_label=False)),
                resizable=True)


if __name__ == '__main__':
    from pyavl.avl import AVL
    from pyavl.runutils import RunConfig
    from pyavl import runs_dir, join
    avl = AVL(cwd=runs_dir)
    filename = join(runs_dir, 'allegro.avl')
    avl.load_case_from_file(filename)
    rv = RunConfig(runcase=RunCase.get_case_from_avl(avl.avl))
    print rv.configure_traits(kind='livemodal')
    print 'rv configured'
    output = rv.run()
    print output
    print 'rv ran'
    opv = OutputPlotViewer(runoutput=output)
    opv.configure_traits()

    ovv = OutputVariablesViewer(runoutput=output)
    ovv.configure_traits()

    osv = OutputSystemViewer(runoutput=output)