#NEWLINE# @ decorate_set_on_listener ( 'ontouchend' , '(self,x,y)' ) #NEWLINE# def set_on_touchend_listener( self , listener , funcname ) : #NEWLINE# #INDENT# 'Registers the listener for the Widget.ontouchend event.\n        Note: the listener prototype have to be in the form on_widget_touchend(self, x, y)\n\n        Args:\n            listener (App, Widget): Instance of the listener. It can be the App or a Widget.\n            funcname (str): Literal name of the listener function, member of the listener instance\n        ' #NEWLINE# self . attributes [ self . EVENT_ONTOUCHEND ] = ( "var params={};params['x']=parseInt(event.changedTouches[0].clientX)-this.offsetLeft;params['y']=parseInt(event.changedTouches[0].clientY)-this.offsetTop;sendCallbackParam('%s','%s',params);event.stopPropagation();event.preventDefault();return false;" % ( id ( self ) , self . EVENT_ONTOUCHEND ) ) #NEWLINE# self . eventManager . register_listener ( listener . EVENT_ONTOUCHEND , listener , funcname )