def remove(self, widget):
        idx, subwin = self._widget_to_index(widget)
        if subwin is not None:
            self.children.remove(subwin)
            self.cur_index = -1
            frame = subwin.frame
            super(MDIWidget, self).remove(frame)
            widget.unparent()
dataset/ETHPy150Open ejeschke/ginga/ginga/gtkw/GtkHelp.py/MDIWidget.remove/original