def remove(self, widget):
        if isinstance(widget, int):
            widget = self.getWidget(widget)

        if widget.getParent() != self:
            return False

        td = DOM.getParent(widget.getElement())
        DOM.removeChild(self.tableRow, td)

        CellPanel.remove(self, widget)
        return True
dataset/ETHPy150Open anandology/pyjamas/library/gwt/ui/HorizontalPanel.py/HorizontalPanel.remove/original