def set_index(self, idx):
        if 0 <= idx < len(self.children):
            child = self.children[idx]
            subwin = self._get_subwin(child.widget)
            if subwin is not None:
                self.widget.setActiveSubWindow(subwin)
dataset/ETHPy150Open ejeschke/ginga/ginga/qtw/Widgets.py/MDIWidget.set_index/original