Module baseObject :: Class AutoPropertyObject
[hide private]
[frames] | no frames]

Class AutoPropertyObject

source code

object --+
         |
        AutoPropertyObject

A class that dynamicly supports properties, by looking up _get_* and _set_* methods at runtime. _get_x will make property x with a getter (you can get its value). _set_x will make a property x with a setter (you can set its value). If there is a _get_x but no _set_x then setting x will override the property completely. Properties can also be cached for the duration of one core pump cycle. This is useful if the same property is likely to be fetched multiple times in one cycle. For example, several NVDAObject properties are fetched by both braille and speech. Setting _cache_x to True specifies that x should be cached. Setting it to False specifies that it should not be cached. If _cache_x is not set, cachePropertiesByDefault is used.

Nested Classes [hide private]
  __metaclass__
Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_getPropertyViaCache(self, getterMethod=None) source code
 
invalidateCache(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
invalidateCaches(cls)
Invalidate the caches for all current instances.
source code
Class Variables [hide private]
  __instances = weakref.WeakKeyDictionary()
  cachePropertiesByDefault = False
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)