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.