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()
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()