#NEWLINE# def _on_window_activated( self , window , trait_name , event ) : #NEWLINE# #INDENT# ' Dynamic trait change handler. ' #NEWLINE# logger . debug ( 'window %s activated' , event ) #NEWLINE# self . active_window = window #NEWLINE# return