(self, align='w', showkeys=False)
return
Redraw row header
Redraw row header
Redraw row header
def redraw(self, align='w', showkeys=False):
        """Redraw row header"""

        self.height = self.table.rowheight * self.table.rows+10
        self.configure(scrollregion=(0,0, self.width, self.height))
        self.delete('rowheader','text')
        self.delete('rect')
        w = float(self.width)
        h = self.table.rowheight
        x = self.x_start+w/2
        if align == 'w':
            x = x-w/2+3
        elif align == 'e':
            x = x+w/2-3
        for row in self.table.visiblerows:
            if showkeys == True:
                text = self.model.getRecName(row)
            else:
                text = row+1
            x1,y1,x2,y2 = self.table.getCellCoords(row,0)
            self.create_rectangle(0,y1,w-1,y2,
                                      fill='gray75',
                                      outline='white',
                                      width=1,
                                      tag='rowheader')
            self.create_text(x,y1+h/2,
                                      text=text,
                                      fill='black',
                                      font=self.table.thefont,
                                      tag='text', anchor=align)
        return
def redraw ( self , align = 'w' , showkeys = False ) : self . height = self . table . rowheight * self . table . rows + 10 self . configure ( scrollregion = ( 0 , 0 , self . width , self . height ) ) self . delete ( 'rowheader' , 'text' ) self . delete ( 'rect' ) w = float ( self . width ) h = self . table . rowheight x = self . x_start + w / 2 if align == 'w' : x = x - w / 2 + 3 elif align == 'e' : x = x + w / 2 - 3 for row in self . table . visiblerows : if showkeys == True : text = self . model . getRecName ( row ) else : text = row + 1 x1 , y1 , x2 , y2 = self . table . getCellCoords ( row , 0 ) self . create_rectangle ( 0 , y1 , w - 1 , y2 , fill = 'gray75' , outline = 'white' , width = 1 , tag = 'rowheader' ) self . create_text ( x , y1 + h / 2 , text = text , fill = 'black' , font = self . table . thefont , tag = 'text' , anchor = align ) return