envisage.ui.gui_application module

Envisage GUI Application

This class handles the life-cycle of a Pyface GUI. Plugins can display windows via mechinisms such as edit_traits().

This is intended to be a very simple shell for lifting an existing pure TraitsUI or Pyface (or even Qt) app into an Envisage app.

More sophisticated applications should use Tasks.

class envisage.ui.gui_application.GUIApplication(plugins=None, **traits)[source]

Bases: envisage.application.Application

The entry point for an Envisage GUI application.

This class handles the life-cycle of a Pyface GUI. Plugins can display windows via mechinisms such as edit_traits().

This is intended to be a very simple shell for lifting an existing pure TraitsUI or Pyface (or even Qt) app into an Envisage app.

More sophisticated applications should use Tasks.

application_initialized = Event

Fired after the GUI event loop has been started.

gui = Supports("pyface.i_gui.IGUI")

The Pyface GUI for the application.

run()[source]

Run the application.

Returns

Whether the application started successfully (i.e., without a veto).

Return type

bool

splash_screen = Supports("pyface.i_splash_screen.ISplashScreen")

The splash screen for the application. By default, there is no splash screen.