def registerevent(self, event_name, fn_name, *args):
if not isinstance(event_name, str):<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>self._pollEvents._callback[event_name] = [event_name, fn_name, args]<EOL>return self._remote_registerevent(event_name)<EOL>
Register at-spi event

@param event_name: Event name in at-spi format.
@type event_name: string
@param fn_name: Callback function
@type fn_name: function
@param *args: arguments to be passed to the callback function
@type *args: var args

@return: 1 if registration was successful, 0 if not.
@rtype: integer