File: pyglet_app.py

package info (click to toggle)
python-enable 4.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 7,280 kB
  • ctags: 13,899
  • sloc: cpp: 48,447; python: 28,502; ansic: 9,004; makefile: 315; sh: 44
file content (19 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
In other backends, we expect the UI toolkit to have a main loop running
external to Enable.

As of Pyglet 1.1, a new Pyglet App object was introduced which handles
running a main loop and efficiently dispatching to windows and event
handlers, so the former Enable PygletApp object is no longer needed,
and this file is just a stub for backwards compatibility.
"""

import pyglet

__all__ = ["get_app", "PygletApp"]

def get_app():
    """ Returns a reference to the current running Pyglet App """
    return pyglet.app

PygletApp = pyglet.app