Inherits from
- Interface: enthought.traits.has_traits.Interface
Attributes
- active_window
The active workbench window (the last one to get focus).
active_window = Instance(WorkbenchWindow)
- exited
Fired when the workbench has exited.
This is fired after the last open window has been closed.
exited = Event
- exiting
Fired when the workbench is about to exit.
This can be caused by either:-
- The 'exit' method being called.
- The last open window being closed.
exiting = VetoableEvent
- script_manager
The optional application scripting manager.
script_manager = Instance('enthought.appscripting.api.IScriptManager')
- state_location
A directory on the local file system that we can read and write to at will. This is used to persist window layout information, etc.
state_location = Str
- undo_manager
The optional undo manager.
undo_manager = Instance('enthought.undo.api.IUndoManager')
- user_perspective_manager
The user defined perspectives manager.
user_perspective_manager = Instance(UserPerspectiveManager)
- window_closed
Fired when a workbench window has been closed.
window_closed = Event(WindowEvent)
- window_closing
Fired when a workbench window is closing.
window_closing = Event(VetoableWindowEvent)
- window_created
Fired when a workbench window has been created.
window_created = Event(WindowEvent)
- window_opened
Fired when a workbench window has been opened.
window_opened = Event(WindowEvent)
- window_opening
Fired when a workbench window is opening.
window_opening = Event(VetoableWindowEvent)
- windows
All of the workbench windows created by the workbench.
windows = List(WorkbenchWindow)
Inherited from base classes
Method summary
- create_window(self, **kw)
- edit(self, obj, kind = None, use_existing = True)
- exit(self)
- get_editor(self, obj, kind = None)
- get_editor_by_id(self, id)
Inherited from base classes
- __deepcopy__(self, memo)
- __getstate__(self)
- __prefix_trait__(self, name, is_set)
- __reduce_ex__(self, protocol)
- __setstate__(self, state, trait_change_notify = True)
- add_class_trait(cls, name, *trait)
- add_trait(self, name, *trait)
- add_trait_category(cls, category)
- add_trait_listener(self, object, prefix = '')
- all_trait_names(self)
- base_trait(self, name)
- class_default_traits_view(cls)
- class_editable_traits(cls)
- class_trait_names(cls, **metadata)
- class_trait_view(cls, name = None, view_element = None)
- class_trait_view_elements(cls)
- class_traits(cls, **metadata)
- clone_traits(self, traits = None, memo = None, copy = None, **metadata)
- configure_traits(self, filename = None, view = None, kind = None, edit = True, context = None, handler = None, id = '', scrollable = None, **args)
- copy_traits(self, other, traits = None, memo = None, copy = None, **metadata)
- copyable_trait_names(self, **metadata)
- default_traits_view(self)
- edit_traits(self, view = None, parent = None, kind = None, context = None, handler = None, id = '', scrollable = None, **args)
- editable_traits(self)
- has_traits_interface(self, *interfaces)
- on_trait_change(self, handler, name = None, remove = False, dispatch = 'same', priority = False, deferred = False)
- print_traits(self, show_help = False, **metadata)
- remove_trait(self, name)
- remove_trait_listener(self, object, prefix = '')
- reset_traits(self, traits = None, **metadata)
- set_trait_dispatch_handler(cls, name, klass, override = False)
- sync_trait(self, trait_name, object, alias = None, mutual = True, remove = False)
- trait(self, name, force = False, copy = False)
- trait_context(self)
- trait_get(self, *names, **metadata)
- trait_monitor(cls, handler, remove = False)
- trait_names(self, **metadata)
- trait_set(self, trait_change_notify = True, **traits)
- trait_setq(self, **traits)
- trait_subclasses(cls, all = False)
- trait_view(self, name = None, view_element = None)
- trait_view_elements(self)
- trait_views(self, klass = None)
- traits(self, **metadata)
- validate_trait(self, name, value)
Methods
- create_window(self, **kw)
Factory method that creates a new workbench window.
- edit(self, obj, kind = None, use_existing = True)
Edit an object in the active workbench window.
- exit(self)
Exit the workbench.
This closes all open workbench windows.
This method is not called when the user clicks the close icon. Nor when they do an Alt+F4 in Windows. It is only called when the application menu File->Exit item is selected.
- get_editor(self, obj, kind = None)
Return the editor that is editing an object.
Returns None if no such editor exists.
- get_editor_by_id(self, id)
Return the editor with the specified Id.
Returns None if no such editor exists.