application

class camelot.view.action_steps.application.ActionView(title, actions)[source]

Open a new view which presents the user with a number of actions to trigger.

Parameters:
  • title – the tile of the view
  • actions – a list of actions
class camelot.view.action_steps.application.Exit(return_code=0)[source]

Stop the event loop, and exit the application

class camelot.view.action_steps.application.InstallTranslator(admin)[source]

Install a translator in the application. Ownership of the translator will be moved to the application.

Parameters:admin – a :class:`camelot.admin.application_admin.ApplicationAdmin’ object
class camelot.view.action_steps.application.MainWindow(admin)[source]

Open a top level application window

Parameters:admin – a :class:`camelot.admin.application_admin.ApplicationAdmin’ object
window_title

The title of the main window, defaults to the application name if None is given

render(gui_context)[source]

create the main window. this method is used to unit test the action step.

class camelot.view.action_steps.application.RemoveTranslators(admin)[source]

Unregister all previously installed translators from the application.

Parameters:admin – a :class:`camelot.admin.application_admin.ApplicationAdmin’ object