mirror of
				https://github.com/avatao-content/baseimage-tutorial-framework
				synced 2025-11-04 05:22:55 +00:00 
			
		
		
		
	@@ -6,6 +6,9 @@ from tfw.config import tfwenv
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
    anchor_webide = SourceCodeEventHandler('anchor_webide', tfwenv.WEBIDE_WD, 'login')
 | 
			
		||||
    anchor_terminado = TerminadoEventHandler('anchor_terminado', 'terminado')
 | 
			
		||||
    IOLoop.instance().start()
 | 
			
		||||
    eventhandlers = {SourceCodeEventHandler('anchor_webide', tfwenv.WEBIDE_WD, 'login'),
 | 
			
		||||
                     TerminadoEventHandler('anchor_terminado', 'terminado')}
 | 
			
		||||
    try:
 | 
			
		||||
        IOLoop.instance().start()
 | 
			
		||||
    finally:
 | 
			
		||||
        for eh in eventhandlers: eh.cleanup()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user