def addAction(self,action,func,*args,**kwargs):
if not hasattr(self,"<STR_LIT>"):<EOL><INDENT>self.actions = {}<EOL><DEDENT>if action not in self.actions:<EOL><INDENT>self.actions[action] = []<EOL><DEDENT>self.actions[action].append((func,args,kwargs))<EOL>
Adds a callback to the specified action.

All other positional and keyword arguments will be stored and passed to the function upon activation.