File: pyglet_app.py

package info (click to toggle)
python-enable 3.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,392 kB
  • ctags: 17,135
  • sloc: cpp: 79,151; python: 29,601; makefile: 2,926; sh: 43
file content (19 lines) | stat: -rw-r--r-- 548 bytes parent folder | download
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