(self, startrow, endrow)
return
Draw the table grid lines
Draw the table grid lines
Draw the table grid lines
def drawGrid(self, startrow, endrow):
        """Draw the table grid lines"""
        self.delete('gridline','text')
        rows=len(self.rowrange)
        cols=self.cols
        w = self.cellwidth
        h = self.rowheight
        x_start=self.x_start
        y_start=self.y_start
        x_pos=x_start

        if self.vertlines==1:
            for col in range(cols+1):
                x=self.col_positions[col]
                self.create_line(x,y_start,x,y_start+rows*h, tag='gridline',
                                     fill=self.grid_color, width=self.linewidth)
        if self.horizlines==1:
            for row in range(startrow, endrow+1):
                y_pos=y_start+row*h
                self.create_line(x_start,y_pos,self.tablewidth,y_pos, tag='gridline',
                                    fill=self.grid_color, width=self.linewidth)
        return
def drawGrid ( self , startrow , endrow ) : self . delete ( 'gridline' , 'text' ) rows = len ( self . rowrange ) cols = self . cols w = self . cellwidth h = self . rowheight x_start = self . x_start y_start = self . y_start x_pos = x_start if self . vertlines == 1 : for col in range ( cols + 1 ) : x = self . col_positions [ col ] self . create_line ( x , y_start , x , y_start + rows * h , tag = 'gridline' , fill = self . grid_color , width = self . linewidth ) if self . horizlines == 1 : for row in range ( startrow , endrow + 1 ) : y_pos = y_start + row * h self . create_line ( x_start , y_pos , self . tablewidth , y_pos , tag = 'gridline' , fill = self . grid_color , width = self . linewidth ) return