pyface.workbench.user_perspective_manager module
Manages a set of user perspectives.
-
class pyface.workbench.user_perspective_manager.UserPerspectiveManager[source]
Bases: HasTraits
Manages a set of user perspectives.
-
create_perspective(name, show_editor_area=True)[source]
Create a new (and empty) user-defined perspective.
-
clone_perspective(window, perspective, **traits)[source]
Clone a perspective as a user perspective.
-
save()[source]
Persist the current state of the user perspectives.
-
add(perspective, name=None)[source]
Add a perspective with an optional name.
-
rename(perspective, name)[source]
Rename the user perspective with the specified id.
-
remove(id)[source]
Remove the user perspective with the specified id.
This method also updates the persistent data.