Data.Data

Module Data :: Class Data |
[show private | hide private]
[frames | no frames]

## Type Data

    object --+
             |
            Data

A collection of globally used data resources such as fonts and sound effects.

Method Summary
| `__init__(self, resource, svg)`
| `customizeFont(self, font)`
| ``essentialResourcesLoaded`(self)` return: True if essential resources such as the font have been loaded.
| ``getSelectSound`(self)` Return a randomly chosen selection sound.
| ``loadSvgDrawing`(self, target, name, fileName, textureSize)` Load an SVG drawing synchronously.
| ``resourcesLoaded`(self)` return: True if all the resources have been loaded.
Inherited from object
| ``__delattr__`(...)` x.__delattr__('name') <==> del x.name
| ``__getattribute__`(...)` x.__getattribute__('name') <==> x.name
| ``__hash__`(x)` x.__hash__() <==> hash(x)
| ``__new__`(T, S, ...)` T.__new__(S, ...) -> a new object with type S, a subtype of T
| ``__reduce__`(...)` helper for pickle
| ``__reduce_ex__`(...)` helper for pickle
| ``__repr__`(x)` x.__repr__() <==> repr(x)
| ``__setattr__`(...)` x.__setattr__('name', value) <==> x.name = value
| ``__str__`(x)` x.__str__() <==> str(x)

Property Summary
| `selectSound`

Method Details

### essentialResourcesLoaded(self) return: True if essential resources such as the font have been loaded.

### getSelectSound(self) Returns: A randomly chosen selection sound.

### loadSvgDrawing(self, target, name, fileName, textureSize=None)
    Load an SVG drawing synchronously.

    @param target:      An object that will own the drawing
    @param name:        The name of the attribute the drawing will be assigned to
    @param fileName:    The name of the file in the data directory
    @param textureSize  Either None or (x, y), in which case the file will
                        be rendered to an x by y texture
    @return:            L{SvgDrawing} instance

### resourcesLoaded(self) return: True if all the resources have been loaded.

Property Details

### selectSound Get Method: `getSelectSound`(self)

Generated by Epydoc 2.1 on Thu Nov 23 23:40:42 2006 | http://epydoc.sf.net