atk.Registry
atk.Registry — an object used to store the GType of the factories used to
create an accessible object for an object of a particular GType.
Description
The atk.Registry is
normally used to create appropriate ATK "peers" for user interface
components. Application developers usually need only interact with the atk.Registry by
associating appropriate ATK implementation classes with gobject.GObject
classes via the set_factory_type()
method, passing the appropriate GType for application custom widget
classes.
Methods
atk.Registry.set_factory_type
def set_factory_type(type, factory_type)
|
Associate an atk.ObjectFactory
subclass with a atk.Object
type. Note: The associated factory_type will
thereafter be responsible for the creation of new atk.Object
implementations for instances appropriate for
type.
atk.Registry.get_factory_type
def get_factory_type(type)
|
Returns a atk.ObjectFactory
subclass associated with type.
Functions
atk.get_default_registry
def atk.get_default_registry()
|
Gets a default implementation of the atk.ObjectFactory
type registry. Note: For most toolkit maintainers, this will be the
correct registry for registering new atk.Object
factories. Following a call to this function, maintainers may call the
set_factory_type()
method to associate an atk.ObjectFactory
subclass with the type of objects for whom accessibility information
will be provided.