(self, notebook, widget, x, y)
Create a window to contain a detached tab
Create a window to contain a detached tab
Create a window to contain a detached tab
def create_window_detach(self, notebook, widget, x, y):
        """Create a window to contain a detached tab"""
        dbg('creating window for detached tab: %s' % widget)
        maker = Factory()

        window = maker.make('Window')
        window.move(x, y)
        size = self.window.get_size()
        window.resize(size.width, size.height)

        self.detach_tab(widget)
        self.disconnect_child(widget)
        self.hoover()
        window.add(widget)

        window.show_all()
def create_window_detach ( self , notebook , widget , x , y ) : dbg ( 'creating window for detached tab: %s' % widget ) maker = Factory ( ) window = maker . make ( 'Window' ) window . move ( x , y ) size = self . window . get_size ( ) window . resize ( size . width , size . height ) self . detach_tab ( widget ) self . disconnect_child ( widget ) self . hoover ( ) window . add ( widget ) window . show_all ( )