StartupActionRegistry#
- class glue_qt.config.StartupActionRegistry[source]#
Bases:
DictRegistry
Methods Summary
__call__
(name)This is provided so that registry instances can be used as decorators.
add
(startup_name, startup_function)Add a startup function to the registry.
Methods Documentation
- __call__(name)[source]#
This is provided so that registry instances can be used as decorators. The decorators should add the decorated code object to the registry, and return the original function
- add(startup_name, startup_function)[source]#
Add a startup function to the registry. This is a function that will get called once glue has been started and any data loaded, and can be used to set up specific layouts and create links.
Startup actions are triggered by either specifying comma-separated names of actions on the command-line:
glue --startup=mystartupaction
or by passing an iterable of startup action names to the
startup
keyword ofGlueApplication
.The startup function will be given the session object and the data collection object.