def run(self,evloop=None):
self.setup()<EOL>if evloop is not None:<EOL><INDENT>pyglet.app.event_loop = evloop<EOL><DEDENT>pyglet.app.run() <EOL>
Runs the application in the current thread.

This method should not be called directly, especially when using multiple windows, use :py:meth:`Peng.run()` instead.

Note that this method is blocking as rendering needs to happen in the main thread.
It is thus recommendable to run your game logic in another thread that should be started before calling this method.

``evloop`` may optionally be a subclass of :py:class:`pyglet.app.base.EventLoop` to replace the default event loop.