<s> class MultiListener ( object ) : <EOL> combinations = dict ( <EOL> onFocus = [ "<STR_LIT>" ] , <EOL> onLostFocus = [ "<STR_LIT>" ] , <EOL> onKeyDown = [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onKeyUp = [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onKeyPress = [ "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onMouseMove = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onMouseDown = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onMouseUp = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onMouseEnter = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onMouseLeave = [ "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" , "<STR_LIT>" ] , <EOL> onTabSelected = [ "<STR_LIT>" ] , <EOL> onBeforeTabSelected = [ "<STR_LIT>" ] , <EOL> ) <EOL> def __init__ ( self , obj , ** kwargs ) : <EOL> self . set ( obj , ** kwargs ) <EOL> def set ( self , obj , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> """<STR_LIT>""" <EOL> ignore = getattr ( self , "<STR_LIT:ignore>" ) <EOL> for k , v in kwargs . iteritems ( ) : <EOL> setattr ( self , k , getattr ( obj , v ) ) <EOL> if k in self . combinations : <EOL> for k1 in self . combinations [ k ] : <EOL> if not hasattr ( self , k1 ) : <EOL> setattr ( self , k1 , ignore ) <EOL> def ignore ( self , * args , ** kwargs ) : <EOL> """<STR_LIT>""" <EOL> return True </s>
