#NEWLINE# def idle( self ) : #NEWLINE# #INDENT# 'This function is called after every frame. By default:\n\n           * it "ticks" the clock to the next frame.\n           * it reads all input and dispatches events.\n           * it dispatches `on_update`, `on_draw` and `on_flip` events to the\n             window.\n        ' #NEWLINE# Clock . tick ( ) #NEWLINE# self . dispatch_input ( ) #NEWLINE# Builder . sync ( ) #NEWLINE# Clock . tick_draw ( ) #NEWLINE# Builder . sync ( ) #NEWLINE# window = self . window #NEWLINE# if ( window and self . canvas . needs_redraw ) : #NEWLINE# #INDENT# window . dispatch ( 'on_draw' ) #NEWLINE# window . dispatch ( 'on_flip' ) #NEWLINE# #UNINDENT# if ( len ( self . event_listeners ) == 0 ) : #NEWLINE# #INDENT# Logger . error ( 'Base: No event listeners have been created' ) #NEWLINE# Logger . error ( 'Base: Application will leave' ) #NEWLINE# self . exit ( ) #NEWLINE# return False #NEWLINE# #UNINDENT# return self . quit