

def visit_QDockTabWidget(self, tabs):
    ' Visit a QDockTabWidget node.\n\n        This visitor generates a TabLayout for the tab widget and\n        pushes it onto the stack.\n\n        '
    children = []
    for index in xrange(tabs.count()):
        self.visit(tabs.widget(index))
        children.append(self.stack.pop())
    layout = TabLayout(*children)
    layout.index = tabs.currentIndex()
    layout.tab_position = self.TAB_POSITION[tabs.tabPosition()]
    self.stack.append(layout)

dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/qt/docking/layout_saver.py LayoutSaver.visit_QDockTabWidget/original