

def create(self, parent):
    ' Create the toolkit-specific control that represents the editor. '
    from enaml.widgets.constraints_widget import ProxyConstraintsWidget
    self.component = self.create_component()
    visible = self.component.visible
    self.component.visible = False
    self.component.initialize()
    if (not self.component.proxy_is_active):
        self.component.activate_proxy()
    self.control = self.component.proxy.widget
    if (parent is not None):
        self.control.setParent(parent)
    self.component.visible = visible
    if isinstance(self.component, ProxyConstraintsWidget):
        self.component.proxy.request_relayout()

dataset/ETHPy150Open enthought/pyface/pyface/tasks/enaml_pane.py EnamlPane.create/original