#NEWLINE# @ CarbonEventHandler ( kEventClassMouse , kEventMouseUp ) #NEWLINE# def _on_mouse_up( self , next_handler , ev , data ) : #NEWLINE# #INDENT# button = self . _get_mouse_buttons_changed ( ) #NEWLINE# modifiers = self . _get_modifiers ( ev ) #NEWLINE# if ( button is not None ) : #NEWLINE# #INDENT# ( x , y ) = self . _get_mouse_position ( ev ) #NEWLINE# y = ( self . height - y ) #NEWLINE# self . dispatch_event ( 'on_mouse_release' , x , y , button , modifiers ) #NEWLINE# #UNINDENT# carbon . CallNextEventHandler ( next_handler , ev ) #NEWLINE# return noErr