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