exopy.app.app_plugin module

Application plugin handling the application startup and closing.

class exopy.app.app_plugin.AppPlugin[source]

Bases: enaml.workbench.plugin.Plugin

A plugin to manage application life cycle.

startup

Collect all contributed AppStartup extensions.

closing

Collect all contributed AppClosing extensions.

closed

Collect all contributed AppClosed extensions.

start()[source]

Start the plugin life-cycle.

This method is called by the framework at the appropriate time. It should never be called by user code.

stop()[source]

Stop the plugin life-cycle.

This method is called by the framework at the appropriate time. It should never be called by user code.

run_app_startup(cmd_args)[source]

Run all the registered app startups based on their priority.

validate_closing(window, event)[source]

Run all closing checks to determine whether or not to close the app.

run_app_cleanup()[source]

Run all the registered app closed based on their priority.