#NEWLINE# @ CarbonEventHandler ( kEventClassWindow , kEventWindowResizeStarted ) #NEWLINE# def _on_window_resize_started( self , next_handler , ev , data ) : #NEWLINE# #INDENT# from pyglet import app #NEWLINE# if ( app . event_loop is not None ) : #NEWLINE# #INDENT# app . event_loop . enter_blocking ( ) #NEWLINE# #UNINDENT# carbon . CallNextEventHandler ( ev , ev ) #NEWLINE# return noErr