envisage.i_application module

The application interface.

class envisage.i_application.IApplication(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]

Bases: IExtensionRegistry, IImportManager, IPluginManager, IServiceRegistry

The application interface.

home = Str

The name of a directory (created for you) to which the application can read and write non-user accessible data, i.e. configuration information, preferences, etc.

id = Str

The application’s globally unique identifier.

preferences = Instance(IPreferences)

The root preferences node.

run()[source]

Run the application.

The same as:

if application.start():
    application.stop()
started = Event(ApplicationEvent)

Fired when all plugins have been started.

starting = VetoableEvent(ApplicationEvent)

Fired when the application is starting. This is the first thing that happens when the ‘start’ method is called.

stopped = Event(ApplicationEvent)

Fired when all plugins have been stopped.

stopping = VetoableEvent(ApplicationEvent)

Fired when the plugin manager is stopping. This is the first thing that happens when the ‘stop’ method is called.

user_data = Str

The name of a directory (created for you upon access) to which the application can read and write user-accessible data, e.g. projects created by the user.