示例#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
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()