def select_child_cb(self, layout, event, subwin):
        ex, ey = event.x_root, event.y_root

        x, y = self.get_widget_position(subwin.frame)
        subwin.x, subwin.y = x, y

        # make this the selected widget
        idx = self.page_num(subwin.widget)
        if idx >= 0:
            self.set_current_page(idx)

        self.selected_child = Bunch.Bunch(subwin=subwin, action='move',
                                          cr = self.setup_cr(self.bin_window),
                                          x_origin=x, y_origin=y, dx=ex, dy=ey)
        return True
dataset/ETHPy150Open ejeschke/ginga/ginga/gtkw/GtkHelp.py/MDIWidget.select_child_cb/original