Application extends a Library. It's meant to be used by applications
Libraries are usually instantiated in __init__.py in the topmost package in your library, an example usage is kiwi itself which does:>>> 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()
Function | __init__ | Creates a new library, this is usually called in __init__.py in a
|
Function | _get_main | Undocumented |
Function | enable_translation | Enables translation for a application
|
Function | run | Undocumented |