def page_detach_cb(self, ws, child):
        try:
            width, height = child.get_size()

            wsname = str(time.time())
            ws = self.create_toplevel_ws(wsname, width, height+100)

            # get title of child
            try:
                title = child.extdata['tab_title']
            except __HOLE__:
                title = 'No Title'

            ws.add_tab(child, title=title)
        except Exception as e:
            print(str(e))
dataset/ETHPy150Open ejeschke/ginga/ginga/gw/Desktop.py/Desktop.page_detach_cb