pyface.workbench.perspective module

The default perspective.

class pyface.workbench.perspective.Perspective[source]

Bases: HasTraits

The default perspective.

DEFAULT_ID = 'pyface.workbench.default'
DEFAULT_NAME = 'Default'
create(window)[source]

Create the perspective in a workbench window.

For most cases you should just be able to set the ‘contents’ trait to lay out views as required. However, you can override this method if you want to have complete control over how the perspective is created.

show(window)[source]

Called when the perspective is shown in a workbench window.

The default implementation does nothing, but you can override this method if you want to do something whenever the perspective is activated.