(self, widget)
return(True)
Remove a widget from the container
Remove a widget from the container
Remove a widget from the container
def remove(self, widget):
        """Remove a widget from the container"""
        page_num = self.page_num(widget)
        if page_num == -1:
            err('%s not found in Notebook. Actual parent is: %s' %
                    (widget, widget.get_parent()))
            return(False)
        self.remove_page(page_num)
        self.disconnect_child(widget)
        return(True)
def remove ( self , widget ) : page_num = self . page_num ( widget ) if page_num == - 1 : err ( '%s not found in Notebook. Actual parent is: %s' % ( widget , widget . get_parent ( ) ) ) return ( False ) self . remove_page ( page_num ) self . disconnect_child ( widget ) return ( True )