コード例 #1
0
def run():
    with enaml.imports():
        from vtk_grid_view import Main

    app = QtApplication()

    view = Main(custom_title='VTK Geometry Extract Example')
    view.show()

    # Start the application event loop
    app.start()
コード例 #2
0
ファイル: vtk_demo_run.py プロジェクト: viz4biz/PyDataNYC2015
def run_demo():
    """
    bootstrap enaml in python
    """
    with enaml.imports():
        from vtk_grid_view import Main

    app = QtApplication()

    view = Main(custom_title='VTK Canvas Demo')
    view.show()

    # Start the application event loop
    app.start()