def redraw(self, current=False):
        canvas_width = self._canvas.winfo_width()
        (x0,y0,x1,y1) = self._canvas.bbox(self.text_object)
        height = y1-y0
        x0 = max(x0 - 8, 0)
        y0 = y0 - 1
        x1 = max(x1 - 8, 0)
        y1 = y1 + 2
        x2 = x1 + height
        if current:
            y1 = y1 + 1
            color = "white"
            coords = (0,0, 0,y0, x0,y0, x0,y1, x1,y1, 
                       x2,y0, canvas_width,y0, canvas_width,0)
            tags = (self.name,"current")
        else:
            color = "lightblue"
            coords = (x0,y0, x0,y1, x1, y1, x2,y0)
            tags = (self.name,"others")

        self._canvas.coords(self.tab_object, coords)
        self._canvas.itemconfigure(self.tab_object, fill=color, tags=tags)
        self._canvas.tag_raise("current")
Constructor for Content
dataset/ETHPy150Open boakley/robotframework-workbench/rwb/widgets/tabnotebook.py/NotebookTab.redraw--crossover with--dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/atom/__init__.py/Content.__init__