code stringlengths 1 1.49M | vector listlengths 0 7.38k | snippet listlengths 0 7.38k |
|---|---|---|
# epydoc -- Output generation
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: __init__.py 956 2006-03-10 01:30:51Z edloper $
"""
Output generation.
"""
__docformat__ = 'epytext en'
| [
[
8,
0,
0.8333,
0.25,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
1,
0.0833,
0,
0.66,
1,
959,
1,
0,
0,
0,
0,
3,
0
]
] | [
"\"\"\"\nOutput generation.\n\"\"\"",
"__docformat__ = 'epytext en'"
] |
#
# doctest.py: Syntax Highlighting for doctest blocks
# Edward Loper
#
# Created [06/28/03 02:52 AM]
# $Id: restructuredtext.py 1210 2006-04-10 13:25:50Z edloper $
#
"""
Syntax highlighting for doctest blocks. This module defines two
functions, L{doctest_to_html()} and L{doctest_to_latex()}, which can
be used to per... | [
[
8,
0,
0.0418,
0.0289,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0579,
0.0032,
0,
0.66,
0.1,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0643,
0.0032,
0,
0.66,
... | [
"\"\"\"\nSyntax highlighting for doctest blocks. This module defines two\nfunctions, L{doctest_to_html()} and L{doctest_to_latex()}, which can\nbe used to perform syntax highlighting on doctest blocks. It also\ndefines the more general C{colorize_doctest()}, which could be used to\ndo syntac highlighting on docte... |
#
# javadoc.py: javadoc docstring parsing
# Edward Loper
#
# Created [07/03/03 12:37 PM]
# $Id: javadoc.py 1444 2007-02-10 19:26:54Z dvarrazzo $
#
"""
Epydoc parser for U{Javadoc<http://java.sun.com/j2se/javadoc/>}
docstrings. Javadoc is an HTML-based markup language that was
developed for documenting Java APIs with ... | [
[
8,
0,
0.1028,
0.1371,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1734,
0.004,
0,
0.66,
0.1667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1855,
0.004,
0,
0.66,
... | [
"\"\"\"\nEpydoc parser for U{Javadoc<http://java.sun.com/j2se/javadoc/>}\ndocstrings. Javadoc is an HTML-based markup language that was\ndeveloped for documenting Java APIs with inline comments. It consists\nof raw HTML, augmented by Javadoc tags. There are two types of\nJavadoc tag:\n\n - X{Javadoc block tags}... |
# epydoc -- Marked-up Representations for Python Values
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: apidoc.py 1448 2007-02-11 00:05:34Z dvarrazzo $
"""
Syntax highlighter for Python values. Currently provides special
colorization support for:
... | [
[
8,
0,
0.0342,
0.0361,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0532,
0.0019,
0,
0.66,
0.0667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0646,
0.0019,
0,
0.66,... | [
"\"\"\"\nSyntax highlighter for Python values. Currently provides special\ncolorization support for:\n\n - lists, tuples, sets, frozensets, dicts\n - numbers\n - strings\n - compiled regexps",
"__docformat__ = 'epytext en'",
"import types, re",
"import epydoc.apidoc",
"from epydoc.util import decode_wi... |
#
# plaintext.py: plaintext docstring parsing
# Edward Loper
#
# Created [04/10/01 12:00 AM]
# $Id: plaintext.py 1444 2007-02-10 19:26:54Z dvarrazzo $
#
"""
Parser for plaintext docstrings. Plaintext docstrings are rendered as
verbatim output, preserving all whitespace.
"""
__docformat__ = 'epytext en'
from epydoc.m... | [
[
8,
0,
0.14,
0.0533,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1733,
0.0133,
0,
0.66,
0.2,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2,
0.0133,
0,
0.66,
0.4... | [
"\"\"\"\nParser for plaintext docstrings. Plaintext docstrings are rendered as\nverbatim output, preserving all whitespace.\n\"\"\"",
"__docformat__ = 'epytext en'",
"from epydoc.markup import *",
"from epydoc.util import plaintext_to_html, plaintext_to_latex",
"def parse_docstring(docstring, errors, **opt... |
# epydoc
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: __init__.py 1558 2007-02-27 05:28:35Z edloper $
"""
Automatic Python reference documentation generator. Epydoc processes
Python modules and docstrings to generate formatted API documentation,... | [
[
8,
0,
0.4604,
0.8458,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.8855,
0.0044,
0,
0.66,
0.0909,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.8943,
0.0044,
0,
0.66... | [
"\"\"\"\nAutomatic Python reference documentation generator. Epydoc processes\nPython modules and docstrings to generate formatted API documentation,\nin the form of HTML pages. Epydoc can be used via a command-line\ninterface (`epydoc.cli`) and a graphical interface (`epydoc.gui`).\nBoth interfaces let the user ... |
#
# epydoc -- Utility functions used by regression tests (*.doctest)
# Edward Loper
#
# Created [01/30/01 05:18 PM]
# $Id: html.py 1420 2007-01-28 14:19:30Z dvarrazzo $
#
"""
Utility functions used by the regression tests (C{*.doctest}).
"""
__docformat__ = 'epytext en'
import tempfile, re, os, os.path, textwrap, sys... | [
[
8,
0,
0.0442,
0.0133,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0531,
0.0044,
0,
0.66,
0.05,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.0619,
0.0044,
0,
0.66,
... | [
"\"\"\"\nUtility functions used by the regression tests (C{*.doctest}).\n\"\"\"",
"__docformat__ = 'epytext en'",
"import tempfile, re, os, os.path, textwrap, sys",
"from epydoc.docbuilder import build_doc, build_doc_index",
"from epydoc.docparser import parse_docs",
"from epydoc.docintrospecter import in... |
# epydoc -- Regression testing
#
# Copyright (C) 2005 Edward Loper
# Author: Edward Loper <edloper@loper.org>
# URL: <http://epydoc.sf.net>
#
# $Id: __init__.py 1502 2007-02-14 08:38:44Z edloper $
"""
Regression testing.
"""
__docformat__ = 'epytext en'
import unittest, doctest, epydoc, os, os.path, re, sys
def main... | [
[
8,
0,
0.1031,
0.0309,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.1237,
0.0103,
0,
0.66,
0.2,
959,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.1443,
0.0103,
0,
0.66,
... | [
"\"\"\"\nRegression testing.\n\"\"\"",
"__docformat__ = 'epytext en'",
"import unittest, doctest, epydoc, os, os.path, re, sys",
"def main():\n try:\n doctest.register_optionflag\n except:\n print (\"\\n\"\n \"The regression test suite requires a more recent version of\\n\"\n ... |
#! /usr/bin/env python
#
# Edward Loper's API Documentation Generation Tool
#
# Created [05/27/01 09:04 PM]
# Edward Loper
#
from distutils.core import setup
import re, sys, epydoc
VERSION = str(epydoc.__version__)
(AUTHOR, EMAIL) = re.match('^(.*?)\s*<(.*)>$', epydoc.__author__).groups()
URL = epydoc.__url__
LICENSE... | [
[
1,
0,
0.2727,
0.0303,
0,
0.66,
0,
152,
0,
1,
0,
0,
152,
0,
0
],
[
1,
0,
0.303,
0.0303,
0,
0.66,
0.125,
540,
0,
3,
0,
0,
540,
0,
0
],
[
14,
0,
0.3636,
0.0303,
0,
0... | [
"from distutils.core import setup",
"import re, sys, epydoc",
"VERSION = str(epydoc.__version__)",
"(AUTHOR, EMAIL) = re.match('^(.*?)\\s*<(.*)>$', epydoc.__author__).groups()",
"URL = epydoc.__url__",
"LICENSE = epydoc.__license__",
"if '--format=wininst' in sys.argv:\n SCRIPTS = ['scripts/epydoc.py... |
#!/usr/bin/env python
#
# Call the command line interface for Epydoc.
#
# Make sure that we don't get confused between an epydoc.py script and
# the real epydoc package.
import sys, os.path
if os.path.exists(os.path.join(sys.path[0], 'epydoc.py')):
del sys.path[0]
from epydoc.cli import cli
cli()
| [
[
1,
0,
0.5714,
0.0714,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
4,
0,
0.6786,
0.1429,
0,
0.66,
0.3333,
0,
3,
0,
0,
0,
0,
0,
2
],
[
1,
0,
0.8571,
0.0714,
0,
0.66... | [
"import sys, os.path",
"if os.path.exists(os.path.join(sys.path[0], 'epydoc.py')):\n del sys.path[0]",
"from epydoc.cli import cli",
"cli()"
] |
#!/usr/bin/python
#
# Call the graphical interface for Epydoc.
#
# We have to do some path magic to prevent Python from getting
# confused about the difference between this epydoc module, and the
# real epydoc package. So sys.path[0], which contains the directory
# of the script.
import sys, os.path
script_path = os.... | [
[
1,
0,
0.5882,
0.0588,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
14,
0,
0.6471,
0.0588,
0,
0.66,
0.25,
647,
3,
1,
0,
0,
142,
10,
1
],
[
14,
0,
0.7353,
0.1176,
0,
... | [
"import sys, os.path",
"script_path = os.path.abspath(sys.path[0])",
"sys.path = [p for p in sys.path if\n os.path.abspath(p) != script_path]",
"from epydoc.gui import gui",
"gui()"
] |
#!/usr/bin/python
#
# Call the graphical interface for Epydoc.
#
from epydoc.gui import gui
gui()
| [
[
1,
0,
0.8571,
0.1429,
0,
0.66,
0,
263,
0,
1,
0,
0,
263,
0,
0
],
[
8,
0,
1,
0.1429,
0,
0.66,
1,
22,
3,
0,
0,
0,
0,
0,
1
]
] | [
"from epydoc.gui import gui",
"gui()"
] |
#!/usr/bin/python
#
# Call the command line interface for Epydoc.
#
# We have to do some path magic to prevent Python from getting
# confused about the difference between this epydoc module, and the
# real epydoc package. So remove sys.path[0], which contains the
# directory of the script.
import sys, os.path
script_... | [
[
1,
0,
0.5882,
0.0588,
0,
0.66,
0,
509,
0,
2,
0,
0,
509,
0,
0
],
[
14,
0,
0.6471,
0.0588,
0,
0.66,
0.25,
647,
3,
1,
0,
0,
142,
10,
1
],
[
14,
0,
0.7353,
0.1176,
0,
... | [
"import sys, os.path",
"script_path = os.path.abspath(sys.path[0])",
"sys.path = [p for p in sys.path if\n os.path.abspath(p) != script_path]",
"from epydoc.cli import cli",
"cli()"
] |
#!/usr/bin/env python
#
# Copyright 2006 Google Inc. All Rights Reserved.
# Author: danderson@google.com (David Anderson)
#
# Script for uploading files to a Google Code project.
#
# This is intended to be both a useful script for people who want to
# streamline project uploads and a reference implementation for
# uplo... | [
[
8,
0,
0.2197,
0.0101,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2323,
0.0051,
0,
0.66,
0.1,
777,
1,
0,
0,
0,
0,
3,
0
],
[
1,
0,
0.2424,
0.0051,
0,
0.66,
... | [
"\"\"\"Google Code file uploader script.\n\"\"\"",
"__author__ = 'danderson@google.com (David Anderson)'",
"import httplib",
"import os.path",
"import optparse",
"import getpass",
"import base64",
"def upload(file, project_name, user_name, password, summary, labels=None):\n \"\"\"Upload a file to a G... |
#!/usr/bin/env python
'''Upload dist/ files to code.google.com. For Alex only :-)
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import os
import re
import sys
base = os.path.dirname(__file__)
root = os.path.join(base, '../..')
dist = os.path.join(root, 'dist')
sys.path.insert(0, root)
import pyglet
... | [
[
8,
0,
0.0449,
0.0256,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0769,
0.0128,
0,
0.66,
0.0833,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0897,
0.0128,
0,
0.66... | [
"'''Upload dist/ files to code.google.com. For Alex only :-)\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import os",
"import re",
"import sys",
"base = os.path.dirname(__file__)",
"root = os.path.join(base, '../..')",
"dist = os.path.join(root, 'dist')",
"sys.path.insert... |
# 2. Create build/pyglet.wxs from pyglet.wxs, add all file components
# 3. Run candle and light on build/pyglet.wxs to generate
# ../../dist/pyglet.msi
import os
import re
import shutil
import subprocess
from uuid import uuid1
from xml.dom.minidom import parse
import pkg_resources
class PythonVersion... | [
[
1,
0,
0.0158,
0.0032,
0,
0.66,
0,
688,
0,
1,
0,
0,
688,
0,
0
],
[
1,
0,
0.019,
0.0032,
0,
0.66,
0.0455,
540,
0,
1,
0,
0,
540,
0,
0
],
[
1,
0,
0.0222,
0.0032,
0,
0... | [
"import os",
"import re",
"import shutil",
"import subprocess",
"from uuid import uuid1",
"from xml.dom.minidom import parse",
"import pkg_resources",
"class PythonVersion(object):\n def __init__(self, version, key_root, display_version):\n self.version = version\n self.display_versio... |
#!/usr/bin/env python
'''
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
from wraptypes.wrap import main as wrap
import os.path
import sys
import pyglet
pyglet.options['shadow_window'] = False
if __name__ == '__main__':
if not os.path.exists('pyglet/window'):
assert False, 'Run with CWD = ... | [
[
8,
0,
0.0347,
0.0198,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0594,
0.0099,
0,
0.66,
0.125,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0693,
0.0099,
0,
0.66,... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"from wraptypes.wrap import main as wrap",
"import os.path",
"import sys",
"import pyglet",
"pyglet.options['shadow_window'] = False",
"if __name__ == '__main__':\n if not os.path.exists('pyglet/window'):\n assert Fa... |
#!/usr/bin/env python
# ----------------------------------------------------------------------------
# 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 ... | [
[
8,
0,
0.338,
0.0185,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.3611,
0.0093,
0,
0.66,
0.0303,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.3704,
0.0093,
0,
0.66,... | [
"'''\n'''",
"__docformat__ = 'restructuredtext'",
"__version__ = '$Id$'",
"import textwrap",
"import pyglet.window",
"from pyglet.gl import *",
"from pyglet.gl import gl_info",
"from pyglet.gl import glu_info",
"platform = pyglet.window.get_platform()",
"print('Platform instance is %r' % platform)... |
#!/usr/bin/env python
'''Print OpenAL driver information.
Options:
-d <device> Optionally specify device to query.
'''
__docformat__ = 'restructuredtext'
__version__ = '$Id$'
import ctypes
import optparse
import sys
from pyglet.media.drivers import openal
from pyglet.media.drivers.openal import al
from pyglet.... | [
[
1,
0,
0.0417,
0.0417,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0833,
0.0417,
0,
0.66,
0.1667,
323,
0,
1,
0,
0,
323,
0,
0
],
[
1,
0,
0.125,
0.0417,
0,
0... | [
"import ctypes",
"import optparse",
"import sys",
"from pyglet.media.drivers import openal",
"from pyglet.media.drivers.openal import al",
"from pyglet.media.drivers.openal import alc",
"def split_nul_strings(s):\n # NUL-separated list of strings, double-NUL-terminated.\n nul = False\n i = 0\n ... |
#!/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.3687,
0.0404,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.404,
0.0101,
0,
0.66,
0.1667,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.4141,
0.0101,
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.0079,
0.002,
0,
0.66,
0,
182,
0,
1,
0,
0,
182,
0,
0
],
[
1,
0,
0.0099,
0.002,
0,
0.66,
0.0145,
182,
0,
1,
0,
0,
182,
0,
0
],
[
14,
0,
0.0158,
0.002,
0,
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.0493,
0.0054,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0541,
0.0014,
0,
0.66,
0.0333,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0554,
0.0014,
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.2305,
0.013,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
1,
0,
0.2403,
0.0065,
0,
0.66,
0.1667,
777,
0,
1,
0,
0,
777,
0,
0
],
[
14,
0,
0.2532,
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.2649,
0.0149,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.2836,
0.0075,
0,
0.66,
0.0833,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.291,
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.0326,
0.0018,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.0349,
0.0009,
0,
0.66,
0.05,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.0358,
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.2261,
0.0127,
0,
0.66,
0,
0,
1,
0,
0,
0,
0,
0,
0
],
[
14,
0,
0.242,
0.0064,
0,
0.66,
0.1111,
959,
1,
0,
0,
0,
0,
3,
0
],
[
14,
0,
0.2484,
0.0064,
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.