#NEWLINE# def __init__( self , area , tern ) : #NEWLINE# #INDENT# self . tern = tern #NEWLINE# trigger = ( lambda event : area . hook ( 'INSERT' , '<Control-Key-period>' , ( lambda event : JavascriptCompleteWindow ( self . tern , event . widget ) ) , add = False ) ) #NEWLINE# remove_trigger = ( lambda event : area . unhook ( 'INSERT' , '<Control-Key-period>' ) ) #NEWLINE# area . install ( ( ( - 1 ) , '<<Load-application/x-javascript>>' , trigger ) , ( ( - 1 ) , '<<Load-text/html>>' , trigger ) , ( ( - 1 ) , '<<Save-application/x-javascript>>' , trigger ) , ( ( - 1 ) , '<<Save-text/html>>' , trigger ) , ( ( - 1 ) , '<<LoadData>>' , remove_trigger ) , ( ( - 1 ) , '<<SaveData>>' , remove_trigger ) )