Inherits from
- View: enthought.pyface.workbench.view.View
Attributes
- obj
The object that we povide a traits UI of (this defaults to the view iteself ie. 'self').
obj = Any
- ui
The traits UI that represents the view.
The framework sets this to the value returned by 'create_ui'.
ui = Instance(UI)
- view
The name of the traits UI view used to create the UI (if not specified, the default traits UI view is used).
view = Str
Method summary
- create_control(self, parent)
- create_ui(self, parent)
- destroy_control(self)
Methods
- create_control(self, parent)
Creates the toolkit-specific control that represents the editor.
'parent' is the toolkit-specific control that is the editor's parent.
Overridden to call 'create_ui' to get the traits UI.
- create_ui(self, parent)
Creates the traits UI that represents the editor.
By default it calls 'edit_traits' on the view's 'model'. If you want more control over the creation of the traits UI then override!
- destroy_control(self)
Destroys the toolkit-specific control that represents the editor.
Overridden to call 'dispose' on the traits UI.