pyface.workbench.i_workbench_part module
The interface for workbench parts.
-
class pyface.workbench.i_workbench_part.IWorkbenchPart(adaptee, default=<class 'traits.adaptation.adaptation_error.AdaptationError'>)[source]
Bases: Interface
The interface for workbench parts.
A workbench part is a visual section within the workbench. There are two
sub-types, ‘View’ and ‘Editor’.
-
create_control(parent)[source]
Create the toolkit-specific control that represents the part.
The parameter parent is the toolkit-specific control that is the
parts’s parent.
Return the toolkit-specific control.
-
destroy_control()[source]
Destroy the toolkit-specific control that represents the part.
Return None.
-
set_focus()[source]
Set the focus to the appropriate control in the part.
Return None.
-
class pyface.workbench.i_workbench_part.MWorkbenchPart[source]
Bases: HasTraits
Mixin containing common code for toolkit-specific implementations.
-
create_control(parent)[source]
Create the toolkit-specific control that represents the part.
-
destroy_control()[source]
Destroy the toolkit-specific control that represents the part.
-
set_focus()[source]
Set the focus to the appropriate control in the part.