

def child_added(self, child):
    ' Handle the child added event for a QtNotebook.\n\n        '
    super(QtNotebook, self).child_added(child)
    if isinstance(child, QtPage):
        for (index, dchild) in enumerate(self.children()):
            if (index is dchild):
                self.widget.insertPage(index, child.widget)

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/qt_notebook.py QtNotebook.child_added/VarMisuse@56/89 `child`->`index`