#NEWLINE# @ decorate_set_on_listener ( 'onmouseup' , '(self,x,y)' ) #NEWLINE# def set_on_mouseup_listener( self , listener , funcname ) : #NEWLINE# #INDENT# 'Registers the listener for the Widget.onmouseup event.\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_ONMOUSEUP ] = ( "var params={};params['x']=event.clientX-this.offsetLeft;params['y']=event.clientY-this.offsetTop;sendCallbackParam('%s','%s',params);event.stopPropagation();event.preventDefault();return false;" % ( id ( self ) , self . EVENT_ONMOUSEUP ) ) #NEWLINE# self . eventManager . register_listener ( self . EVENT_ONMOUSEUP , listener , funcname )