#NEWLINE# @ decorate_set_on_listener ( 'ontouchcancel' , '(self)' ) #NEWLINE# def set_on_touchcancel_listener( self , listener , funcname ) : #NEWLINE# #INDENT# 'Registers the listener for the Widget.ontouchcancel event.\n\n        Note: the listener prototype have to be in the form on_widget_touchcancel(self)\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_ONTOUCHCANCEL ] = ( "sendCallback('%s','%s');event.stopPropagation();event.preventDefault();return false;" % ( id ( self ) , self . EVENT_ONTOUCHCANCEL ) ) #NEWLINE# self . eventManager . register_listener ( self . EVENT_ONTOUCHCANCEL , listener , funcname )