application¶
- class camelot.admin.action.application.Application(application_admin=None)[source]¶
An action to be used as the entry point of the application. This action will pop up a splash window, set the application attributes, initialize the database, install translators and construct a main window.
Subclass this class and overwrite the model_run() method to customize the application initialization process
Parameters: application_admin – a subclass of camelot.admin.application_admin.ApplicationAdmin customized to your app. If no application_admin is passed, a default one is created (this is not recommended) - gui_run(gui_context)[source]¶
The main entry point of the application, method will show the splash, start the event loop, start the model thread and pass control asap to the model thread
- model_run(model_context)[source]¶
Overwrite this generator method to customize the startup process of your application.
Parameters: model_context – a camelot.admin.action.base.ModelContext object