Package pyLinAcc :: Module Accessible
[hide private]
[frames] | no frames]

Module Accessible

source code

Defines a mixin class that extend the functionality of the existing AT-SPI objects with features such as searching on any criteria and comparison of two AT-SPI Accessibles.


Author: Peter Parente

Organization: IBM Corporation

Copyright: Copyright (c) 2005, 2007 IBM Corporation

License: The BSD License

All rights reserved. This program and the accompanying materials are made available under the terms of the BSD license which accompanies this distribution, and is available at http://www.opensource.org/licenses/bsd-license.php

Classes [hide private]
  AccessibleMixin
Defines additional methods to be added to the AT-SPI Accessible object.
Functions [hide private]
 
stirInto(cls, new_cls, include=None, exclude=None)
Adds the methods in new_cls named in include or those not in exclude, or all methods if neither is specified, to cls.
source code
Function Details [hide private]

stirInto(cls, new_cls, include=None, exclude=None)

source code 

Adds the methods in new_cls named in include or those not in exclude, or all methods if neither is specified, to cls. After stirring, all instances of cls will have the new methods. If there is a method name clash, the method already in cls will be prefixed with an underscore before the new method of the same name is mixed in.

Based on code from http://wwwx.cs.unc.edu/~parente/cgi-bin/RuntimeClassMixins.

Parameters:
  • cls (class) - Existing class to mix features into
  • new_cls (class) - Class containing features to add
  • include (list) - Method names to add
  • exclude (list) - Method names to avoid adding