code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
#!/usr/bin/env python
'''Generate files in pyglet.gl and pyglet/GLU
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import marshal
import optparse
import os.path
import urllib2
import sys
import textwrap
from wraptypes.wrap import CtypesWrapper
script_dir = os.path.abspath(os.path.dirname(__file__))
G... | [
[
8,
0,
0.015,
0.0086,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0258,
0.0043,
0,
0.66,
0.0303,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.03,
0.0043,
0,
0.66,
... | [
"'''Generate files in pyglet.gl and pyglet/GLU\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import marshal",
"import optparse",
"import os.path",
"import urllib2",
"import sys",
"import textwrap",
"from wraptypes.wrap import CtypesWrapper",
"script_dir = os.path.abspath(... |
import os
import sys
from itertools import chain
from distutils.util import spawn
from distutils.version import StrictVersion, LooseVersion
from distutils.dir_util import mkpath
import distutils.core
try:
set
except NameError:
from sets import Set as set
def Version(s):
try:
return StrictVersion(s... | [
[
1,
0,
0.0077,
0.0077,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0154,
0.0077,
0,
0.66,
0.05,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0231,
0.0077,
0,
0.... | [
"import os",
"import sys",
"from itertools import chain",
"from distutils.util import spawn",
"from distutils.version import StrictVersion, LooseVersion",
"from distutils.dir_util import mkpath",
"import distutils.core",
"try:\n set\nexcept NameError:\n from sets import Set as set",
" set",... |
InstallationCheck = dict(
postjaguar=(
u"#!/bin/sh\nexit 112\n",
u'"16" = "This package requires Mac OS X 10.3 or later";',
),
prepanther=(u"""#!/bin/sh
#
# We use IFRequirementDicts anyway and "parse" it to find where expect
# Python to be. It's remotely possible that Python is not install... | [
[
14,
0,
0.5227,
1,
0,
0.66,
0,
183,
3,
2,
0,
0,
827,
10,
1
]
] | [
"InstallationCheck = dict(\n postjaguar=(\n u\"#!/bin/sh\\nexit 112\\n\",\n u'\"16\" = \"This package requires Mac OS X 10.3 or later\";',\n ),\n prepanther=(u\"\"\"#!/bin/sh\n#\n# We use IFRequirementDicts anyway and \"parse\" it to find where expect"
] |
"""bdist_mpkg.cmd_bdist_mpkg
Implements the Distutils 'bdist_mpkg' command (create an OS X "mpkg"
binary distribution)."""
import os
import sys
import zipfile
from setuptools import Command
from distutils.util import get_platform, byte_compile
from distutils.dir_util import remove_tree, mkpath
from distutils.errors... | [
[
8,
0,
0.005,
0.0081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0121,
0.002,
0,
0.66,
0.0833,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0141,
0.002,
0,
0.66,
... | [
"\"\"\"bdist_mpkg.cmd_bdist_mpkg\n\nImplements the Distutils 'bdist_mpkg' command (create an OS X \"mpkg\"\nbinary distribution).\"\"\"",
"import os",
"import sys",
"import zipfile",
"from setuptools import Command",
"from distutils.util import get_platform, byte_compile",
"from distutils.dir_util impor... |
#!/usr/bin/env python
import sys, os
import setuptools
import bdist_mpkg_pyglet
def main():
del sys.argv[0]
if not sys.argv:
sys.argv[:0] = ['setup.py', '--open']
elif sys.argv[0].startswith('-'):
sys.argv[:0] = ['setup.py']
elif len(sys.argv) == 1:
sys.argv[1:1] = ['--open']
... | [
[
1,
0,
0.1,
0.0333,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
1,
0,
0.1667,
0.0333,
0,
0.66,
0.25,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.2,
0.0333,
0,
0.66,
... | [
"import sys, os",
"import setuptools",
"import bdist_mpkg_pyglet",
"def main():\n del sys.argv[0]\n if not sys.argv:\n sys.argv[:0] = ['setup.py', '--open']\n elif sys.argv[0].startswith('-'):\n sys.argv[:0] = ['setup.py']\n elif len(sys.argv) == 1:\n sys.argv[1:1] = ['--open'... |
__version__ = '0.4.3-pyglet'
| [
[
14,
0,
1,
1,
0,
0.66,
0,
162,
1,
0,
0,
0,
0,
3,
0
]
] | [
"__version__ = '0.4.3-pyglet'"
] |
import os
import sys
from plistlib import Plist
import bdist_mpkg_pyglet
from bdist_mpkg_pyglet import tools
def _major_minor(v):
rval = [0, 0]
try:
for i, rev in enumerate(v.version):
rval[i] = int(rev)
except (TypeError, ValueError, IndexError):
pass
return rval
def comm... | [
[
1,
0,
0.0072,
0.0072,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0144,
0.0072,
0,
0.66,
0.0714,
509,
0,
1,
0,
0,
509,
0,
0
],
[
1,
0,
0.0216,
0.0072,
0,
... | [
"import os",
"import sys",
"from plistlib import Plist",
"import bdist_mpkg_pyglet",
"from bdist_mpkg_pyglet import tools",
"def _major_minor(v):\n rval = [0, 0]\n try:\n for i, rev in enumerate(v.version):\n rval[i] = int(rev)\n except (TypeError, ValueError, IndexError):\n ... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
from cparser import *
ctypes_type_map = {
# typename signed longs
('void', True, 0): 'None',
('int', True, 0): 'c_int',
('int', False, 0): 'c_uint',
('int', True, 1): 'c_long',
('int... | [
[
8,
0,
0.0109,
0.0062,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0187,
0.0031,
0,
0.66,
0.0526,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0218,
0.0031,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from cparser import *",
"ctypes_type_map = {\n # typename signed longs\n ('void', True, 0): 'None',\n ('int', True, 0): 'c_int',\n ('int', False, 0): 'c_uint',\n ('int', True, 1): 'c_long',\n ... |
#!/usr/bin/env python
'''A package for generating ctypes wrappers from a C header file. See the
docstring for wrap.py for usage.
The files 'lex.py' and 'yacc.py' are from PLY (http://www.dabeaz.com/ply),
which was written by David M. Beazley but have been modified slightly
for this tool.
'''
__docformat__ = 'restru... | [
[
8,
0,
0.4286,
0.5,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.7857,
0.0714,
0,
0.66,
0.5,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8571,
0.0714,
0,
0.66,
... | [
"'''A package for generating ctypes wrappers from a C header file. See the\ndocstring for wrap.py for usage.\n\nThe files 'lex.py' and 'yacc.py' are from PLY (http://www.dabeaz.com/ply),\nwhich was written by David M. Beazley but have been modified slightly\nfor this tool.\n'''",
"__docformat__ = 'restructuredte... |
#!/usr/bin/python
# $Id:$
'''Rewrite the license header of source files.
Usage:
license.py file.py file.py dir/ dir/ ...
'''
import optparse
import os
import sys
license = '''# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary ... | [
[
8,
0,
0.0619,
0.0515,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1031,
0.0103,
0,
0.66,
0.125,
323,
0,
1,
0,
0,
323,
0,
0
],
[
1,
0,
0.1134,
0.0103,
0,
0.66,... | [
"'''Rewrite the license header of source files.\n\nUsage:\n license.py file.py file.py dir/ dir/ ...\n'''",
"import optparse",
"import os",
"import sys",
"license = '''# pyglet\n# Copyright (c) 2006-2008 Alex Holkner\n# All rights reserved.\n# \n# Redistribution and use in source and binary forms, with o... |
#!/usr/bin/env python
# $Id:$
import optparse
import os
import os.path
import re
import shutil
import subprocess
from docutils.core import publish_doctree, publish_from_doctree
from docutils.utils import new_document
from docutils.writers import html4css1
from docutils import nodes
from epydoc.markup.doctest import ... | [
[
1,
0,
0.0102,
0.0025,
0,
0.66,
0,
323,
0,
1,
0,
0,
323,
0,
0
],
[
1,
0,
0.0127,
0.0025,
0,
0.66,
0.0526,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.0153,
0.0025,
0,
... | [
"import optparse",
"import os",
"import os.path",
"import re",
"import shutil",
"import subprocess",
"from docutils.core import publish_doctree, publish_from_doctree",
"from docutils.utils import new_document",
"from docutils.writers import html4css1",
"from docutils import nodes",
"from epydoc.... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1107,
0.1002,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1634,
0.0018,
0,
0.66,
0.0769,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1652,
0.0018,
0,
0.66... | [
"'''Display positioned, scaled and rotated images.\n\nA sprite is an instance of an image displayed on-screen. Multiple sprites can\ndisplay the same image at different positions on the screen. Sprites can also\nbe scaled larger or smaller, rotated at any angle and drawn at a fractional\nopacity.\n\nThe following... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.3967,
0.0435,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4348,
0.0109,
0,
0.66,
0.1667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4457,
0.0109,
0,
0.66... | [
"'''Compatibility tools\n\nVarious tools for simultaneous Python 2.x and Python 3.x support\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import sys",
"import itertools",
"if sys.version_info[0] == 2:\n if sys.version_info[1] < 6:\n #Pure Python implementation from\n ... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0638,
0.0157,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.074,
0.0016,
0,
0.66,
0.0345,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0756,
0.0016,
0,
0.66,... | [
"\"\"\"\nImplementation of the Truetype file format.\n\nTypical applications will not need to use this module directly; look at\n`pyglyph.font` instead. \n\nReferences:\n * http://developer.apple.com/fonts/TTRefMan/RM06",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import codecs",
"impor... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0614,
0.0035,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0709,
0.0017,
0,
0.66,
0.0167,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0727,
0.0017,
0,
0.66... | [
"'''\n'''",
"from ctypes import *",
"import ctypes",
"import math",
"from sys import byteorder",
"import pyglet",
"from pyglet.font import base",
"import pyglet.image",
"from pyglet.libs.win32.constants import *",
"from pyglet.libs.win32.types import *",
"from pyglet.libs.win32 import _gdi32 as ... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0811,
0.0046,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0868,
0.0023,
0,
0.66,
0.0132,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.089,
0.0023,
0,
0.66,... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import math",
"from sys import byteorder",
"from pyglet.font import base",
"import pyglet.image",
"from pyglet.libs.darwin import *",
"from pyglet.libs.darwin import _oscheck",
"class FixedPoint(... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0848,
0.0136,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.095,
0.0023,
0,
0.66,
0.0476,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0973,
0.0023,
0,
0.66,... | [
"'''Abstract classes used by pyglet.font implementations.\n\nThese classes should not be constructed directly. Instead, use the functions\nin `pyglet.font` to obtain platform-specific instances. You can use these\nclasses as a documented interface to the concrete classes.\n'''",
"__docformat__ = 'restructuredte... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0927,
0.0052,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0992,
0.0026,
0,
0.66,
0.0169,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1018,
0.0026,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import math",
"from ctypes import *",
"from ctypes import util",
"from pyglet.font import base",
"import pyglet.image",
"cf = cdll.LoadLibrary(util.find_library('CoreFoundation'))",
"quartz = cdll.LoadLibrary(util.find_li... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0738,
0.0487,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1003,
0.0014,
0,
0.66,
0.0556,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1017,
0.0014,
0,
0.66... | [
"'''Load fonts and render text.\n\nThis is a fairly-low level interface to text rendering. Obtain a font using\n`load`::\n\n from pyglet import font\n arial = font.load('Arial', 14, bold=True, italic=False)",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import sys",
"import os",
"... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0967,
0.0054,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1035,
0.0027,
0,
0.66,
0.0172,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1063,
0.0027,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import ctypes",
"from ctypes import *",
"from warnings import warn",
"import pyglet.lib",
"from pyglet.font import base",
"from pyglet import image",
"from pyglet.font.freetype_lib import *",
"from pyglet.compat import as... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0842,
0.0715,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.122,
0.0014,
0,
0.66,
0.0294,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1234,
0.0014,
0,
0.66,... | [
"'''Load application resources from a known path.\n\nLoading resources by specifying relative paths to filenames is often\nproblematic in Python, as the working directory is not necessarily the same\ndirectory as the application's script files.\n\nThis module allows applications to specify a search path for resourc... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import ctypes
import pyglet
from pyglet.input.base import Tablet, TabletCanvas, TabletCursor
from pyglet.window.carbon import CarbonEventHandler
from pyglet.libs.darwin import *
from pyglet.libs.darwin import _oscheck
class Car... | [
[
8,
0,
0.0278,
0.0159,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0476,
0.0079,
0,
0.66,
0.0769,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0556,
0.0079,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import ctypes",
"import pyglet",
"from pyglet.input.base import Tablet, TabletCanvas, TabletCursor",
"from pyglet.window.carbon import CarbonEventHandler",
"from pyglet.libs.darwin import *",
"from pyglet.libs.darwin import... |
# Uses the HID API introduced in Mac OS X version 10.5
# http://developer.apple.com/library/mac/#technotes/tn2007/tn2187.html
from ctypes import *
from ctypes import util
# Load frameworks
iokit = cdll.LoadLibrary(util.find_library('IOKit'))
cf = cdll.LoadLibrary(util.find_library('CoreFoundation'))
# Core Foundatio... | [
[
1,
0,
0.0082,
0.0021,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0103,
0.0021,
0,
0.66,
0.0145,
182,
0,
1,
0,
0,
182,
0,
0
],
[
14,
0,
0.0164,
0.0021,
0,
... | [
"from ctypes import *",
"from ctypes import util",
"iokit = cdll.LoadLibrary(util.find_library('IOKit'))",
"cf = cdll.LoadLibrary(util.find_library('CoreFoundation'))",
"kCFStringEncodingASCII = 0x0600",
"kCFStringEncodingUnicode = 0x0100",
"kCFStringEncodingUTF8 = 0x08000100",
"kCFNumberIntType ... |
#!/usr/bin/python
# $Id:$
import ctypes
import pyglet
from pyglet.input.base import DeviceOpenException
from pyglet.input.base import Tablet, TabletCursor, TabletCanvas
from pyglet.libs.win32 import libwintab as wintab
lib = wintab.lib
def wtinfo(category, index, buffer):
size = lib.WTInfoW(categor... | [
[
1,
0,
0.0186,
0.0047,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0279,
0.0047,
0,
0.66,
0.0526,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0326,
0.0047,
0,
... | [
"import ctypes",
"import pyglet",
"from pyglet.input.base import DeviceOpenException",
"from pyglet.input.base import Tablet, TabletCursor, TabletCanvas",
"from pyglet.libs.win32 import libwintab as wintab",
"lib = wintab.lib",
"def wtinfo(category, index, buffer):\n size = lib.WTInfoW(category, inde... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import pyglet
from pyglet.input.base import \
Tablet, TabletCanvas, TabletCursor, DeviceOpenException
from pyglet.input.x11_xinput import \
get_devices, XInputWindowEventDispatcher, DeviceResponder
try:
from pyglet.l... | [
[
8,
0,
0.0372,
0.0213,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0638,
0.0106,
0,
0.66,
0.1,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0745,
0.0106,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import pyglet",
"from pyglet.input.base import \\\n Tablet, TabletCanvas, TabletCursor, DeviceOpenException",
"from pyglet.input.x11_xinput import \\\n get_devices, XInputWindowEventDispatcher, DeviceResponder",
"try:\n ... |
#!/usr/bin/env python
'''Event constants from /usr/include/linux/input.h
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
EV_SYN = 0x00
EV_KEY = 0x01
EV_REL = 0x02
EV_ABS = 0x03
EV_MSC = 0x04
EV_LED = 0x11
EV_SND = 0x12
EV_REP = 0x14
EV_FF = 0x15
EV_PWR = 0x16
EV_FF_STATUS = 0x17
EV_MAX = 0x1f
# Synchro... | [
[
8,
0,
0.0065,
0.0037,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0111,
0.0018,
0,
0.66,
0.0021,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0129,
0.0018,
0,
0.66... | [
"'''Event constants from /usr/include/linux/input.h\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"EV_SYN = 0x00",
"EV_KEY = 0x01",
"EV_REL = 0x02",
"EV_ABS = 0x03",
"EV_MSC = 0x04",
"EV_LED = 0x11",
"EV_SND = 0x12",
"EV_REP = 0x14",
"EV_FF = 0x15",
"EV_PWR = 0x16",
... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import ctypes
import pyglet
from pyglet.libs.darwin import carbon, _oscheck, create_cfstring
from pyglet.libs.darwin.constants import *
from base import Device, Control, AbsoluteAxis, RelativeAxis, Button
from base import Joyst... | [
[
8,
0,
0.0068,
0.0039,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0117,
0.0019,
0,
0.66,
0.0119,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0136,
0.0019,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import ctypes",
"import pyglet",
"from pyglet.libs.darwin import carbon, _oscheck, create_cfstring",
"from pyglet.libs.darwin.constants import *",
"from base import Device, Control, AbsoluteAxis, RelativeAxis, Button",
"fro... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0546,
0.006,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0599,
0.0015,
0,
0.66,
0.0385,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0614,
0.0015,
0,
0.66,... | [
"'''Interface classes for `pyglet.input`.\n\n:since: pyglet 1.2\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import sys",
"from pyglet.event import EventDispatcher",
"_is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc",
"class DeviceException(Exception):\n pass",
"c... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.3247,
0.2529,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4598,
0.0057,
0,
0.66,
0.125,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4655,
0.0057,
0,
0.66,... | [
"'''Joystick, tablet and USB HID device support.\n\nThis module provides a unified interface to almost any input device, besides\nthe regular mouse and keyboard support provided by `Window`. At the lowest\nlevel, `get_devices` can be used to retrieve a list of all supported devices,\nincluding joysticks, tablets, ... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import ctypes
import pyglet
from pyglet.input.base import \
Device, DeviceException, DeviceOpenException, \
Control, Button, RelativeAxis, AbsoluteAxis
from pyglet.libs.x11 import xlib
from pyglet.compat import asstr
try... | [
[
8,
0,
0.0101,
0.0058,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0173,
0.0029,
0,
0.66,
0.0714,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0202,
0.0029,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import ctypes",
"import pyglet",
"from pyglet.input.base import \\\n Device, DeviceException, DeviceOpenException, \\\n Control, Button, RelativeAxis, AbsoluteAxis",
"from pyglet.libs.x11 import xlib",
"from pyglet.comp... |
#!/usr/bin/python
# $Id:$
import ctypes
import pyglet
from pyglet.input import base
from pyglet.libs import win32
from pyglet.libs.win32 import dinput
from pyglet.libs.win32 import _kernel32
# These instance names are not defined anywhere, obtained by experiment. The
# GUID names (which seem to be ideal... | [
[
1,
0,
0.0198,
0.005,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0297,
0.005,
0,
0.66,
0.0667,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0347,
0.005,
0,
0.6... | [
"import ctypes",
"import pyglet",
"from pyglet.input import base",
"from pyglet.libs import win32",
"from pyglet.libs.win32 import dinput",
"from pyglet.libs.win32 import _kernel32",
"_abs_instance_names = {\n 0: 'x',\n 1: 'y',\n 2: 'z',\n 3: 'rx', \n 4: 'ry',\n 5: 'rz',\n}",
"_rel_i... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.232,
0.0131,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2418,
0.0065,
0,
0.66,
0.1667,
777,
0,
1,
0,
0,
777,
0,
0
],
[
14,
0,
0.2549,
0.0065,
0,
0.66... | [
"'''\n'''",
"from __future__ import with_statement",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from pyglet.app.base import PlatformEventLoop",
"from pyglet.libs.darwin import *",
"class CocoaEventLoop(PlatformEventLoop):\n\n def __init__(self):\n super(CocoaEventLoop, se... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
14,
0,
0.2432,
0.0068,
0,
0.66,
0,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.25,
0.0068,
0,
0.66,
0.125,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2635,
0.0068,
0,
0.66,... | [
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import ctypes",
"from pyglet import app",
"from base import PlatformEventLoop",
"from pyglet.libs.win32 import _kernel32, _user32, types, constants",
"from pyglet.libs.win32.constants import *",
"from pyglet.libs.win32.types import *",
... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2669,
0.015,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2857,
0.0075,
0,
0.66,
0.0833,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2932,
0.0075,
0,
0.66,... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import os",
"import select",
"import threading",
"from ctypes import *",
"from pyglet import app",
"from pyglet.app.base import PlatformEventLoop",
"from pyglet.compat import asbytes",
"class XlibSelectDevice(object):\n ... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2367,
0.0133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2533,
0.0067,
0,
0.66,
0.125,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.26,
0.0067,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import ctypes",
"from pyglet import app",
"from pyglet.app.base import PlatformEventLoop",
"from pyglet.libs.darwin import *",
"EventLoopTimerProc = ctypes.CFUNCTYPE(None, ctypes.c_void_p, ctypes.c_void_p)",
"class CarbonEv... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
import sys
import threading
import Queue
from pyglet import app
from pyglet import clock
from pyglet import event
_is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc
class PlatformEventLoop(object):
'''
:since: py... | [
[
8,
0,
0.0091,
0.0052,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0157,
0.0026,
0,
0.66,
0.0714,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0183,
0.0026,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import sys",
"import threading",
"import Queue",
"from pyglet import app",
"from pyglet import clock",
"from pyglet import event",
"_is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc",
"class PlatformEventLoop(obj... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2771,
0.1386,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3554,
0.006,
0,
0.66,
0.0667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3614,
0.006,
0,
0.66,
... | [
"'''Application-wide functionality.\n\nMost applications need only call `run` after creating one or more windows\nto begin processing events. For example, a simple application consisting of\none window is::\n\n import pyglet",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import sys",
"... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.3333,
0.2201,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.4528,
0.0063,
0,
0.66,
0.0714,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.4591,
0.0063,
0,
0.66... | [
"'''Minimal Windows COM interface.\n\nAllows pyglet to use COM interfaces on Windows without comtypes. Unlike\ncomtypes, this module does not provide property interfaces, read typelibs,\nnice-ify return values or permit Python implementations of COM interfaces. We\ndon't need anything that sophisticated to work w... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
1,
0,
0.1989,
0.0055,
0,
0.66,
0,
681,
0,
3,
0,
0,
681,
0,
0
],
[
1,
0,
0.2099,
0.0055,
0,
0.66,
0.1111,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.2155,
0.0055,
0,
... | [
"from pyglet.media import Source, AudioFormat, AudioData",
"import ctypes",
"import os",
"import math",
"class ProceduralSource(Source):\n def __init__(self, duration, sample_rate=44800, sample_size=16):\n self._duration = float(duration)\n self.audio_format = AudioFormat(\n chan... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1431,
0.0081,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1532,
0.004,
0,
0.66,
0.05,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1573,
0.004,
0,
0.66,
... | [
"'''Simple Python-only RIFF reader, supports uncompressed WAV files.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from pyglet.media import StreamingSource, AudioData, AudioFormat",
"from pyglet.media import MediaFormatException",
"from pyglet.compat import BytesIO, asbytes",
"im... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import time
from pyglet.media import AbstractAudioPlayer, AbstractAudioDriver, \
MediaThread, MediaEvent
import pyglet
_debug = pyglet.options['debug_media']
class SilentAudioPacket(object):
def __in... | [
[
8,
0,
0.0147,
0.0084,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0252,
0.0042,
0,
0.66,
0.0909,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0294,
0.0042,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import time",
"from pyglet.media import AbstractAudioPlayer, AbstractAudioDriver, \\\n MediaThread, MediaEvent",
"import pyglet",
"_debug = pyglet.options['debug_media']",
"class SilentAudioPacket(object... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
1,
0,
0.0882,
0.0025,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0907,
0.0025,
0,
0.66,
0.0083,
182,
0,
1,
0,
0,
182,
0,
0
],
[
14,
0,
0.0956,
0.0025,
0,
... | [
"import ctypes",
"from pyglet import com",
"lib = ctypes.oledll.dsound",
"DWORD = ctypes.c_uint32",
"LPDWORD = ctypes.POINTER(DWORD)",
"LONG = ctypes.c_long",
"LPLONG = ctypes.POINTER(LONG)",
"WORD = ctypes.c_uint16",
"HWND = DWORD",
"LPUNKNOWN = ctypes.c_void_p",
"D3DVALUE = ctypes.c_float",
... |
#!/usr/bin/python
# $Id:$
import ctypes
import math
import sys
import threading
import time
import lib_dsound as lib
from pyglet.media import MediaException, MediaThread, AbstractAudioDriver, \
AbstractAudioPlayer, MediaEvent
from pyglet.window.win32 import _user32, _kernel32
import pyglet
_debug ... | [
[
1,
0,
0.0074,
0.0019,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0093,
0.0019,
0,
0.66,
0.0625,
526,
0,
1,
0,
0,
526,
0,
0
],
[
1,
0,
0.0112,
0.0019,
0,
... | [
"import ctypes",
"import math",
"import sys",
"import threading",
"import time",
"import lib_dsound as lib",
"from pyglet.media import MediaException, MediaThread, AbstractAudioDriver, \\\n AbstractAudioPlayer, MediaEvent",
"from pyglet.window.win32 import _user32, _kernel32",
"import pyglet",
... |
'''Wrapper for pulse
Generated with:
tools/genwrappers.py pulseaudio
Do not modify this file.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: wrap.py 1694 2008-01-30 23:12:00Z Alex.Holkner $'
import ctypes
from ctypes import *
import pyglet.lib
_lib = pyglet.lib.load_library('pulse')
_int_types = (c_... | [
[
8,
0,
0.0019,
0.0034,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0044,
0.0005,
0,
0.66,
0.001,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0048,
0.0005,
0,
0.66,... | [
"'''Wrapper for pulse\n\nGenerated with:\ntools/genwrappers.py pulseaudio\n\nDo not modify this file.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: wrap.py 1694 2008-01-30 23:12:00Z Alex.Holkner $'",
"import ctypes",
"from ctypes import *",
"import pyglet.lib",
"_lib = pyglet.lib.lo... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0603,
0.0183,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0718,
0.0015,
0,
0.66,
0.0027,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0733,
0.0015,
0,
0.66... | [
"'''Wrapper for openal\n\nGenerated with:\n../tools/wraptypes/wrap.py /usr/include/AL/al.h -lopenal -olib_openal.py\n\n.. Hacked to remove non-existent library functions.\n\nTODO add alGetError check.",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import ctypes",
"from ctypes import *",
... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1294,
0.0245,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1469,
0.0035,
0,
0.66,
0.007,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1503,
0.0035,
0,
0.66,... | [
"'''Wrapper for openal\n\nGenerated with:\n../tools/wraptypes/wrap.py /usr/include/AL/alc.h -lopenal -olib_alc.py\n\n.. Hacked to fix ALCvoid argtypes.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import ctypes",
"from ctypes import *",
"import sys",
"import pyglet.lib",
"_li... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
1,
0,
0.0644,
0.0018,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0662,
0.0018,
0,
0.66,
0.0526,
251,
0,
1,
0,
0,
251,
0,
0
],
[
1,
0,
0.068,
0.0018,
0,
0... | [
"import ctypes",
"import heapq",
"import sys",
"import threading",
"import time",
"import Queue",
"import lib_openal as al",
"import lib_alc as alc",
"from pyglet.media import MediaException, MediaEvent, AbstractAudioPlayer, \\\n AbstractAudioDriver, AbstractListener, MediaThread",
"import pygl... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.036,
0.0238,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0489,
0.0007,
0,
0.66,
0.0204,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0496,
0.0007,
0,
0.66,... | [
"'''Audio and video playback.\n\npyglet can play WAV files, and if AVbin is installed, many other audio and\nvideo formats.\n\nPlayback is handled by the `Player` class, which reads raw data from `Source`\nobjects and provides methods for pausing, seeking, adjusting the volume, and\nso on. The `Player` class imple... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2051,
0.0225,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2247,
0.0056,
0,
0.66,
0.1429,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2303,
0.0056,
0,
0.66... | [
"'''Events for `pyglet.window`.\n\nSee `Window` for a description of the window event types.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import sys",
"from pyglet.window import key",
"from pyglet.window import mouse",
"class WindowExitHandler(object):\n '''Determine if the w... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1179,
0.0663,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1548,
0.0025,
0,
0.66,
0.0048,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1572,
0.0025,
0,
0.66... | [
"'''Key constants and utilities for pyglet.window.\n\nUsage::\n\n from pyglet.window import Window\n from pyglet.window import key\n\n window = Window()",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"class KeyStateHandler(dict):\n '''Simple handler that tracks the state of keys o... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0331,
0.0019,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0355,
0.0009,
0,
0.66,
0.0476,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0364,
0.0009,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import os.path",
"import unicodedata",
"import warnings",
"import pyglet",
"from pyglet.window import WindowException, \\\n BaseWindow, MouseCursor, DefaultMouseCursor, _PlatformEventHandler",
"... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
14,
0,
0.0278,
0.0008,
0,
0.66,
0,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0286,
0.0008,
0,
0.66,
0.0435,
162,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0302,
0.0008,
0,
0.... | [
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"import unicodedata",
"import warnings",
"import pyglet",
"from pyglet.window import WindowException, NoSuchDisplayException, \\\n MouseCursorException, MouseCursor, \\\n DefaultMouseCursor, ImageMouseCursor, Bas... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.5299,
0.0299,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5672,
0.0149,
0,
0.66,
0.1667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.5821,
0.0149,
0,
0.66... | [
"'''Mouse constants and utilities for pyglet.window.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"def buttons_string(buttons):\n '''Return a string describing a set of active mouse buttons.\n\n Example::\n\n >>> buttons_string(LEFT | RIGHT)\n 'LEFT|RIGHT'",
" ... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0436,
0.0491,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.069,
0.0006,
0,
0.66,
0.0192,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0696,
0.0006,
0,
0.66,... | [
"'''Windowing and user-interface events.\n\nThis module allows applications to create and display windows with an\nOpenGL context. Windows can be created with a variety of border styles \nor set fullscreen.\n\nYou can register event handlers for keyboard, mouse and window events.\nFor games and kiosks you can also... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0365,
0.0021,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0391,
0.001,
0,
0.66,
0.0435,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0401,
0.001,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import unicodedata",
"import warnings",
"import sys",
"if sys.platform not in ('cygwin', 'win32'):\n raise ImportError('Not a win32 platform.')",
"import pyglet",
"from pyglet.window import Base... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0327,
0.0018,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.035,
0.0009,
0,
0.66,
0.05,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0359,
0.0009,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import unicodedata",
"import pyglet",
"from pyglet.window import BaseWindow, WindowException",
"from pyglet.window import MouseCursor, DefaultMouseCursor",
"from pyglet.window import key, mouse",
"... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1882,
0.2254,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3042,
0.0022,
0,
0.66,
0.1429,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3063,
0.0022,
0,
0.66... | [
"'''Event dispatch framework.\n\nAll objects that produce events in pyglet implement `EventDispatcher`,\nproviding a consistent interface for registering and manipulating event\nhandlers. A commonly used event dispatcher is `pyglet.window.Window`.\n\nEvent types\n===========",
"__docformat__ = 'restructuredtext'... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0879,
0.1061,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1424,
0.001,
0,
0.66,
0.037,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1434,
0.001,
0,
0.66,
... | [
"'''Precise framerate calculation, scheduling and framerate limiting.\n\nMeasuring time\n==============\n\nThe `tick` and `get_fps` functions can be used in conjunction to fulfil most\ngames' basic requirements::",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import time",
"import sys",
... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1815,
0.0965,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2355,
0.0039,
0,
0.66,
0.125,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2394,
0.0039,
0,
0.66,... | [
"'''Group multiple small images into larger textures.\n\nThis module is used by `pyglet.resource` to efficiently pack small images into\nlarger textures. `TextureAtlas` maintains one texture; `TextureBin` manages a\ncollection of atlases of a given size.\n\nExample usage::",
"__docformat__ = 'restructuredtext'",... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1608,
0.0176,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1762,
0.0044,
0,
0.66,
0.025,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1806,
0.0044,
0,
0.66,... | [
"'''DDS texture loader.\n\nReference: http://msdn2.microsoft.com/en-us/library/bb172993.aspx\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"import struct",
"from pyglet.gl import *",
"from pyglet.image import CompressedImageData",
"from pyglet.image impor... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1203,
0.0068,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1288,
0.0034,
0,
0.66,
0.0217,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1322,
0.0034,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: pil.py 163 2006-11-13 04:15:46Z Alex.Holkner $'",
"import sys",
"from ctypes import *",
"from pyglet.gl import *",
"from pyglet.image import *",
"from pyglet.image.codecs import *",
"from pyglet.window.carbon import carbon, quick... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.13,
0.0073,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1392,
0.0037,
0,
0.66,
0.0227,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1429,
0.0037,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: pil.py 163 2006-11-13 04:15:46Z Alex.Holkner $'",
"from ctypes import *",
"from pyglet.gl import *",
"from pyglet.image import *",
"from pyglet.image.codecs import *",
"from pyglet.libs.win32.constants import *",
"from pyglet.lib... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0984,
0.0105,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.1076,
0.0026,
0,
0.66,
0.0833,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.1102,
0.0026,
0,
0.66... | [
"'''Software decoder for S3TC compressed texture (i.e., DDS).\n\nhttp://oss.sgi.com/projects/ogl-sample/registry/EXT/texture_compression_s3tc.txt\n'''",
"import ctypes",
"import re",
"from pyglet.gl import *",
"from pyglet.gl import gl_info",
"from pyglet.image import AbstractImage, Texture",
"split_8by... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1031,
0.0139,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1309,
0.0028,
0,
0.66,
0.0312,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1337,
0.0028,
0,
0.66... | [
"'''Decoder for BMP files.\n\nCurrently supports version 3 and 4 bitmaps with BI_RGB and BI_BITFIELDS\nencoding. Alpha channel is supported for 32-bit BI_RGB only.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import ctypes",
"from pyglet.image import ImageData",
"from pyglet.imag... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2165,
0.0122,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2317,
0.0061,
0,
0.66,
0.04,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2378,
0.0061,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"from pyglet.gl import *",
"from pyglet.image import *",
"from pyglet.image.codecs import *",
"from pyglet.image.codecs import gif",
"import pyglet.lib",
"import pyglet.window",
"gdk = pyglet.lib.lo... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.216,
0.0237,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2367,
0.0059,
0,
0.66,
0.0588,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2426,
0.0059,
0,
0.66,... | [
"'''Read GIF control data.\n\nhttp://www.w3.org/Graphics/GIF/spec-gif89a.txt\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import struct",
"from pyglet.image.codecs import ImageDecodeException",
"class GIFStream(object):\n def __init__(self):\n self.images = []",
" d... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2076,
0.0117,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2222,
0.0058,
0,
0.66,
0.1111,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2281,
0.0058,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"from pyglet.image import ImageData, Animation, AnimationFrame",
"from pyglet.image.codecs import *",
"import Quartz, CoreFoundation, LaunchServices",
"class QuartzImageDecoder(ImageDecoder):\n def _ge... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1756,
0.0661,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2149,
0.0041,
0,
0.66,
0.0526,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.219,
0.0041,
0,
0.66,... | [
"'''Collection of image encoders and decoders.\n\nModules must subclass ImageDecoder and ImageEncoder for each method of\ndecoding/encoding they support.\n\nModules must also implement the two functions::\n \n def get_decoders():",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import ... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2609,
0.0217,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2826,
0.0072,
0,
0.66,
0.1111,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2899,
0.0072,
0,
0.66... | [
"'''Extensible attributed text format for representing pyglet formatted\ndocuments.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import operator",
"import parser",
"import re",
"import token",
"import pyglet",
"_pattern = re.compile(r'''\n (?P<escape_hex>\\{\\#x(?P<esca... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1157,
0.0413,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1405,
0.0028,
0,
0.66,
0.0667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1433,
0.0028,
0,
0.66... | [
"'''Decode HTML into attributed text.\n\nA subset of HTML 4.01 Transitional is implemented. The following elements are\nsupported fully::\n\n B BLOCKQUOTE BR CENTER CODE DD DIR DL EM FONT H1 H2 H3 H4 H5 H6 I IMG KBD\n LI MENU OL P PRE Q SAMP STRONG SUB SUP TT U UL VAR",
"__docformat__ = 'restructuredtext'"... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.7553,
0.0426,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8085,
0.0213,
0,
0.66,
0.25,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8298,
0.0213,
0,
0.66,
... | [
"'''Plain text decoder.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import pyglet",
"class PlainTextDecoder(pyglet.text.DocumentDecoder):\n def decode(self, text, location=None):\n document = pyglet.text.document.UnformattedDocument()\n document.insert_text(0, te... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.8875,
0.1,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.975,
0.025,
0,
0.66,
0.5,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
1,
0.025,
0,
0.66,
1,
1... | [
"'''Document formats.\n\n:since: pyglet 1.1\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'"
] |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0396,
0.0495,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0649,
0.0004,
0,
0.66,
0.0345,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0654,
0.0004,
0,
0.66... | [
"'''Render simple text and formatted documents efficiently.\n\nThree layout classes are provided:\n\n`TextLayout`\n The entire document is laid out before it is rendered. The layout will\n be grouped with other layouts in the same batch (allowing for efficient\n rendering of multiple layouts).",
"__docf... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1089,
0.0772,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1505,
0.002,
0,
0.66,
0.0667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1525,
0.002,
0,
0.66,
... | [
"'''Text formatting, layout and display.\n\nThis module provides classes for loading styled documents from text files,\nHTML files and a pyglet-specific markup format. Documents can be styled with\nmultiple fonts, colours, styles, text sizes, margins, paragraph alignments,\nand so on. \n\nUsing the layout classes... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0841,
0.0095,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0924,
0.0024,
0,
0.66,
0.1,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0948,
0.0024,
0,
0.66,
... | [
"'''Run list encoding utilities.\n\n:since: pyglet 1.1\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"class _Run(object):\n def __init__(self, value, count):\n self.value = value\n self.count = count\n\n def __repr__(self):\n return 'Run(%r, %d)' % (self.val... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0719,
0.0237,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0863,
0.0017,
0,
0.66,
0.125,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.088,
0.0017,
0,
0.66,
... | [
"'''Provides keyboard and mouse editing procedures for text layout.\n\nExample usage::\n\n from pyglet import window\n from pyglet.text import layout, caret\n\n my_window = window.Window(...)",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import re",
"import time",
"from pygle... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1371,
0.1774,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2278,
0.0014,
0,
0.66,
0.05,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2292,
0.0014,
0,
0.66,
... | [
"'''Formatted and unformatted document interfaces used by text layout.\n\nAbstract representation\n=======================\n\nStyled text in pyglet is represented by one of the `AbstractDocument` classes,\nwhich manage the state representation of text and style independently of how\nit is loaded or rendered.",
"_... |
# Note: The display mode API used here is Mac OS 10.6 only.
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from ctypes import *
from ctypes import util
from pyglet import app
from base import Display, Screen, ScreenMode, Canvas
# Use PyObjC to get the list of displays and their dimensions,
# jus... | [
[
8,
0,
0.0248,
0.0142,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0426,
0.0071,
0,
0.66,
0.0476,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0496,
0.0071,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"from ctypes import util",
"from pyglet import app",
"from base import Display, Screen, ScreenMode, Canvas",
"from Cocoa import NSScreen",
"cf = cdll.LoadLibrary(util.find_library('CoreFoundation'))",... |
#!/usr/bin/python
# $Id:$
from base import Display, Screen, ScreenMode, Canvas
from pyglet.libs.win32 import _kernel32, _user32, types, constants
from pyglet.libs.win32.constants import *
from pyglet.libs.win32.types import *
class Win32Display(Display):
def get_screens(self):
screens = []
... | [
[
1,
0,
0.0392,
0.0098,
0,
0.66,
0,
47,
0,
4,
0,
0,
47,
0,
0
],
[
1,
0,
0.0588,
0.0098,
0,
0.66,
0.1429,
161,
0,
4,
0,
0,
161,
0,
0
],
[
1,
0,
0.0686,
0.0098,
0,
0.... | [
"from base import Display, Screen, ScreenMode, Canvas",
"from pyglet.libs.win32 import _kernel32, _user32, types, constants",
"from pyglet.libs.win32.constants import *",
"from pyglet.libs.win32.types import *",
"class Win32Display(Display):\n def get_screens(self):\n screens = []\n def enu... |
#!/usr/bin/python
# $Id: $
'''Fork a child process and inform it of mode changes to each screen. The
child waits until the parent process dies, and then connects to each X server
with a mode change and restores the mode.
This emulates the behaviour of Windows and Mac, so that resolution changes
made by an applicati... | [
[
8,
0,
0.0526,
0.0643,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.0936,
0.0058,
0,
0.66,
0.0588,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0994,
0.0058,
0,
0.66... | [
"'''Fork a child process and inform it of mode changes to each screen. The\nchild waits until the parent process dies, and then connects to each X server \nwith a mode change and restores the mode.\n\nThis emulates the behaviour of Windows and Mac, so that resolution changes\nmade by an application are not permane... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from ctypes import *
import ctypes
from pyglet import app
from pyglet.app.xlib import XlibSelectDevice
from base import Display, Screen, ScreenMode, Canvas
import xlib_vidmoderestore
# XXX
#from pyglet.window import NoSuchDisp... | [
[
8,
0,
0.0135,
0.0077,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0231,
0.0038,
0,
0.66,
0.05,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0269,
0.0038,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import ctypes",
"from pyglet import app",
"from pyglet.app.xlib import XlibSelectDevice",
"from base import Display, Screen, ScreenMode, Canvas",
"import xlib_vidmoderestore",
"class NoSuchDisplayE... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from pyglet import app
from base import Display, Screen, ScreenMode, Canvas
from pyglet.libs.darwin import *
from pyglet.libs.darwin import _oscheck
class CarbonDisplay(Display):
# TODO: CarbonDisplay could be per display d... | [
[
8,
0,
0.0139,
0.0079,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0238,
0.004,
0,
0.66,
0.0909,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0278,
0.004,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from pyglet import app",
"from base import Display, Screen, ScreenMode, Canvas",
"from pyglet.libs.darwin import *",
"from pyglet.libs.darwin import _oscheck",
"class CarbonDisplay(Display):\n # TODO: CarbonDisplay could b... |
#!/usr/bin/python
# $Id:$
from pyglet import app
from pyglet import gl
from pyglet import window
class Display(object):
'''A display device supporting one or more screens.
:Ivariables:
`name` : str
Name of this display, if applicable.
`x_screen` : int
The... | [
[
1,
0,
0.0133,
0.0033,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0166,
0.0033,
0,
0.66,
0.1667,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0199,
0.0033,
0,
... | [
"from pyglet import app",
"from pyglet import gl",
"from pyglet import window",
"class Display(object):\n '''A display device supporting one or more screens.\n\n :Ivariables:\n `name` : str\n Name of this display, if applicable.\n `x_screen` : int\n The X11 screen num... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * R... | [
[
8,
0,
0.4519,
0.2404,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.5865,
0.0096,
0,
0.66,
0.25,
509,
0,
1,
0,
0,
509,
0,
0
],
[
14,
0,
0.5962,
0.0096,
0,
0.66,... | [
"'''Display and screen management.\n\nRendering is performed on a `Canvas`, which conceptually could be an\noff-screen buffer, the content area of a `Window`, or an entire screen.\nCurrently, canvases can only be created with windows (though windows can be\nset fullscreen).\n\nWindows and canvases must belong to a ... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistributi... | [
[
8,
0,
0.0901,
0.0099,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0988,
0.0025,
0,
0.66,
0.0323,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1012,
0.0025,
0,
0.66... | [
"'''pyglet is a cross-platform games and multimedia package.\n\nDetailed documentation is available at http://www.pyglet.org\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import os",
"import sys",
"_is_epydoc = hasattr(sys, 'is_epydoc') and sys.is_epydoc",
"version = '1.2dev'",
... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.1164,
0.0131,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1279,
0.0033,
0,
0.66,
0.0588,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1311,
0.0033,
0,
0.66... | [
"'''Functions for loading dynamic libraries.\n\nThese extend and correct ctypes functions.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"import os",
"import re",
"import sys",
"import ctypes",
"import ctypes.util",
"import pyglet",
"_debug_lib = pyglet.options['debug_lib'... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.7778,
0.0667,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8444,
0.0222,
0,
0.66,
0.1667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8667,
0.0222,
0,
0.66... | [
"'''This file is currently hand-coded; I don't have a MESA header file to build\noff.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import ctypes",
"from ctypes import *",
"from pyglet.gl.lib import link_GLX as _link_function",
"glXSwapIntervalMESA = _link_function('glXSwapInterv... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0698,
0.0097,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0775,
0.0019,
0,
0.66,
0.004,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0795,
0.0019,
0,
0.66,... | [
"'''Wrapper for /usr/include/GL/glu.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"from pyglet.gl.lib import link_GLU as _link_function",
"from pyglet.gl.lib import c_ptrdiff_t",
"GLU_EXT_object_sp... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0963,
0.0134,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.107,
0.0027,
0,
0.66,
0.0064,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.1096,
0.0027,
0,
0.66,... | [
"'''Wrapper for C:\\cygwin\\home\\Alex\\pyglet\\tools\\wgl.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'",
"from ctypes import *",
"from pyglet.gl.lib import link_WGL as _link_fu... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from pyglet.gl.base import Config, CanvasConfig, Context
from pyglet.libs.darwin import *
from pyglet.gl import ContextException
from pyglet.gl import gl
from pyglet.gl import agl
from pyglet.canvas.cocoa import CocoaCanvas
#... | [
[
8,
0,
0.0167,
0.0096,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0287,
0.0048,
0,
0.66,
0.0714,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0335,
0.0048,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from pyglet.gl.base import Config, CanvasConfig, Context",
"from pyglet.libs.darwin import *",
"from pyglet.gl import ContextException",
"from pyglet.gl import gl",
"from pyglet.gl import agl",
"from pyglet.canvas.cocoa imp... |
#!/usr/bin/python
# $Id:$
from pyglet.canvas.win32 import Win32Canvas
from base import Config, CanvasConfig, Context
from pyglet import gl
from pyglet.gl import gl_info
from pyglet.gl import wgl
from pyglet.gl import wglext_arb
from pyglet.gl import wgl_info
from pyglet.libs.win32 import _user32, _kernel... | [
[
1,
0,
0.0152,
0.0038,
0,
0.66,
0,
895,
0,
1,
0,
0,
895,
0,
0
],
[
1,
0,
0.019,
0.0038,
0,
0.66,
0.0714,
47,
0,
3,
0,
0,
47,
0,
0
],
[
1,
0,
0.0266,
0.0038,
0,
0.6... | [
"from pyglet.canvas.win32 import Win32Canvas",
"from base import Config, CanvasConfig, Context",
"from pyglet import gl",
"from pyglet.gl import gl_info",
"from pyglet.gl import wgl",
"from pyglet.gl import wglext_arb",
"from pyglet.gl import wgl_info",
"from pyglet.libs.win32 import _user32, _kernel3... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.4797,
0.027,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.5135,
0.0135,
0,
0.66,
0.0909,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.527,
0.0135,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import pyglet.lib",
"from pyglet.gl.lib import missing_function, decorate_function",
"__all__ = ['link_GL', 'link_GLU', 'link_AGL']",
"gl_lib = pyglet.lib.load_library(\n framework='/System/Library/... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2857,
0.1429,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3665,
0.0062,
0,
0.66,
0.0769,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3727,
0.0062,
0,
0.66... | [
"'''Information about version and extensions of current GLU implementation.\n\nUsage::\n\n from pyglet.gl import glu_info\n\n if glu_info.have_extension('GLU_EXT_nurbs_tessellator'):\n # ...",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"import warnings... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2959,
0.1224,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3673,
0.0068,
0,
0.66,
0.0526,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3741,
0.0068,
0,
0.66... | [
"'''Information about version and extensions of current GLX implementation.\n\nUsage::\n\n from pyglet.gl import glx_info\n\n if glx_info.have_extension('GLX_NV_float_buffer'):\n # ...",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"from pyglet.gl.glx im... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * R... | [
[
8,
0,
0.0351,
0.0049,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.039,
0.001,
0,
0.66,
0.0021,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.04,
0.001,
0,
0.66,
... | [
"'''Wrapper for http://oss.sgi.com/projects/ogl-sample/ABI/wglext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: gengl.py 601 2007-02-04 05:36:59Z Alex.Holkner $'",
"from ctypes import *",
"from pyglet.gl.lib import link_WGL as _... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id: $'
from ctypes import *
from pyglet.canvas.xlib import XlibCanvas
from base import Config, CanvasConfig, Context
from pyglet import gl
from pyglet.gl import glx
from pyglet.gl import glxext_arb
from pyglet.gl import glx_info
from ... | [
[
8,
0,
0.009,
0.0051,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0154,
0.0026,
0,
0.66,
0.0526,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.018,
0.0026,
0,
0.66,
... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"from pyglet.canvas.xlib import XlibCanvas",
"from base import Config, CanvasConfig, Context",
"from pyglet import gl",
"from pyglet.gl import glx",
"from pyglet.gl import glxext_arb",
"from pyglet.... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.2198,
0.1063,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2802,
0.0048,
0,
0.66,
0.0588,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.285,
0.0048,
0,
0.66,... | [
"'''Information about version and extensions of current GL implementation.\n\nUsage::\n \n from pyglet.gl import gl_info\n\n if gl_info.have_extension('GL_NV_register_combiners'):\n # ...",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id: $'",
"from ctypes import *",
"import warnin... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.3777,
0.0213,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.4043,
0.0106,
0,
0.66,
0.0769,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4149,
0.0106,
0,
0.66... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"import pyglet.lib",
"from pyglet.gl.lib import missing_function, decorate_function",
"from pyglet.compat import asbytes",
"__all__ = ['link_GL', 'link_GLU', 'link_GLX']",
"gl_lib = pyglet.lib.load_libr... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0569,
0.0064,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0625,
0.0016,
0,
0.66,
0.0043,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0641,
0.0016,
0,
0.66... | [
"'''Wrapper for /usr/include/GL/glx.h\n\nDo not modify generated portions of this file.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"from pyglet.gl.lib import link_GLX as _link_function",
"from pyglet.gl.lib import c_ptrdiff_t, c_void",
"if not _link_func... |
# ----------------------------------------------------------------------------
# pyglet
# Copyright (c) 2006-2008 Alex Holkner
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# * Redistribu... | [
[
8,
0,
0.0431,
0.006,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0479,
0.0012,
0,
0.66,
0.0029,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0491,
0.0012,
0,
0.66,... | [
"'''Wrapper for http://developer.download.nvidia.com/opengl/includes/glxext.h\n\nGenerated by tools/gengl.py.\nDo not modify this file.\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from ctypes import *",
"from pyglet.gl.lib import link_GLX as _link_function",
"from pyglet.gl.lib i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.