#NEWLINE# @ CarbonEventHandler ( kEventClassWindow , kEventWindowHidden ) #NEWLINE# @ CarbonEventHandler ( kEventClassWindow , kEventWindowCollapsed ) #NEWLINE# def _on_window_hidden( self , next_handler , ev , data ) : #NEWLINE# #INDENT# self . dispatch_event ( 'on_hide' ) #NEWLINE# carbon . CallNextEventHandler ( next_handler , ev ) #NEWLINE# return noErr