Part of kiwi.environ View In Hierarchy
Application extends a Library. It's meant to be
used by applications
>>> from kiwi.environ import Application >>> app = Application('gnomovision') >>> if app.uninstalled: >>> app.add_global_resource('glade', 'glade') >>> app.add_global_resource('pixmap', 'pixmaps')If you want to do translations, you also need to do the following:
>>> app.enable_translation()
| See Also | Libraryfor more 
information on how to integrate it with the standard distutils 
configuration. | |
| Method | __init__ | Creates a new library, this is usually called in __init__.py in a | 
| Method | _get_main | Undocumented | 
| Method | enable_translation | Enables translation for a application | 
| Method | run | Undocumented | 
Inherited from Library:
| Method | _check_translation | Undocumented | 
| Method | set_application_domain | Sets the default application domain | 
| Method | add_global_resource | Convenience method to add a global resource. | 
| Method | add_global_resources | Undocumented | 
Inherited from Environment (via Library):
| Method | get_root | Undocumented | 
| Method | get_log_level | Undocumented | 
| Method | _add_extensions | Undocumented | 
| Method | _add_resource_variable | Add resources from an environment variable | 
| Method | get_resource_paths | Undocumented | 
| Method | add_resource | Undocumented | 
| Method | add_resources | Undocumented | 
| Method | find_resource | Locate a specific resource of called name of type resource | 
| Method | _get_epydoc | Undocumented | 
| Parameters | name | name of the library | 
| root | root directory | |
| dirname | 
Library.enable_translation.