jupylet/app.py
def idle(self):
        """Called during each iteration of the event loop.

        The method is called immediately after any window events (i.e., after
        any user input).  The method can return a duration after which
        the idle method will be called again.  The method may be called
        earlier if the user creates more input events.  The method
        can return `None` to only wait for user events.

        For example, return ``1.0`` to have the idle method called every
        second, or immediately after any user events.

        The default implementation dispatches the
        :py:meth:`pyglet.window.Window.on_draw` event for all windows and uses
        :py:func:`pyglet.clock.tick` and :py:func:`pyglet.clock.get_sleep_time`
        on the default clock to determine the return value.

        This method should be overridden by advanced users only.  To have
        code execute at regular intervals, use the
        :py:func:`pyglet.clock.schedule` methods.

        :rtype: float
        :return: The number of seconds before the idle method should
            be called again, or `None` to block for user input.
        """
        dt = self.clock.update_time()
        self.clock.call_scheduled_functions(dt)

        # Update timout
        return self.clock.get_sleep_time(True)
Called during each iteration of the event loop.

        The method is called immediately after any window events (i.e., after
        any user input).  The method can return a duration after which
        the idle method will be called again.  The method may be called
        earlier if the user creates more input events.  The method
        can return `None` to only wait for user events.

        For example, return ``1.0`` to have the idle method called every
        second, or immediately after any user events.

        The default implementation dispatches the
        :py:meth:`pyglet.window.Window.on_draw` event for all windows and uses
        :py:func:`pyglet.clock.tick` and :py:func:`pyglet.clock.get_sleep_time`
        on the default clock to determine the return value.

        This method should be overridden by advanced users only.  To have
        code execute at regular intervals, use the
        :py:func:`pyglet.clock.schedule` methods.

        :rtype: float
        :return: The number of seconds before the idle method should
            be called again, or `None` to block for user input.
        
Called during each iteration of the event loop.
The method is called immediately after any window events .  The method can return a duration after which
the idle method will be called again.  The method may be called
earlier if the user creates more input events.  The method
can return `None` to only wait for user events.

For example, return ``1.0`` to have the idle method called every
second, or immediately after any user events.

The default implementation dispatches the
Called during each iteration of the event loop . The method is called immediately after any window events . The method can return a duration after which the idle method will be called again . The method may be called earlier if the user creates more input events . The method can return ` None ` to only wait for user events . For example return ` ` 1 . 0 ` ` to have the idle method called every second or immediately after any user events . The default implementation dispatches the
def idle(self):
        dt = self.clock.update_time()
        self.clock.call_scheduled_functions(dt)
        return self.clock.get_sleep_time(True)
def idle ( self ) : dt = self . clock . update_time ( ) self . clock . call_scheduled_functions ( dt ) return self . clock . get_sleep_time ( True )
Called during each iteration of the event loop.
Called during each iteration of the event loop .
"""Called during each iteration of the event loop.

        The method is called immediately after any window events (i.e., after
        any user input).  The method can return a duration after which
        the idle method will be called again.  The method may be called
        earlier if the user creates more input events.  The method
        can return `None` to only wait for user events.

        For example, return ``1.0`` to have the idle method called every
        second, or immediately after any user events.

        The default implementation dispatches the
        :py:meth:`pyglet.window.Window.on_draw` event for all windows and uses
        :py:func:`pyglet.clock.tick` and :py:func:`pyglet.clock.get_sleep_time`
        on the default clock to determine the return value.

        This method should be overridden by advanced users only.  To have
        code execute at regular intervals, use the
        :py:func:`pyglet.clock.schedule` methods.

        :rtype: float
        :return: The number of seconds before the idle method should
            be called again, or `None` to block for user input.
        """ # Update timout
The number of seconds before the idle method should
be called again, or `None` to block for user input.
The number of seconds before the idle method should be called again or ` None ` to block for user input .
float
self
py
`pyglet.window.Window.on_draw` event for all windows and uses
` pyglet . window . Window . on_draw ` event for all windows and uses
py
`pyglet.clock.tick` and :py:func:`pyglet.clock.get_sleep_time`
on the default clock to determine the return value.

This method should be overridden by advanced users only.  To have
code execute at regular intervals, use the
` pyglet . clock . tick ` and : py : func : ` pyglet . clock . get_sleep_time ` on the default clock to determine the return value . This method should be overridden by advanced users only . To have code execute at regular intervals use the
py
None