def main(): with enaml.imports(): from myapp import Main view = Main() view.show() app = WebApplication() app.start()
def main(): with enaml.imports(): from myapp import Main app = WebApplication() view = Main(message="Hello World, from Python!") view.show() # Start the application event loop app.start()
def main(): with enaml.imports(): from myapp import Main view = Main() view.generateHTML()