(self, row, col)
return x1,y1,x2,y2
Get x-y coordinates to drawing a cell in a given row/col
Get x-y coordinates to drawing a cell in a given row/col
Get x - y coordinates to drawing a cell in a given row / col
def getCellCoords(self, row, col):
        """Get x-y coordinates to drawing a cell in a given row/col"""
        colname=self.model.getColumnName(col)
        if colname in self.model.columnwidths:
            w=self.model.columnwidths[colname]
        else:
            w=self.cellwidth
        h=self.rowheight
        x_start=self.x_start
        y_start=self.y_start

        #get nearest rect co-ords for that row/col
        #x1=x_start+w*col
        x1=self.col_positions[col]
        y1=y_start+h*row
        x2=x1+w
        y2=y1+h
        return x1,y1,x2,y2
def getCellCoords ( self , row , col ) : colname = self . model . getColumnName ( col ) if colname in self . model . columnwidths : w = self . model . columnwidths [ colname ] else : w = self . cellwidth h = self . rowheight x_start = self . x_start y_start = self . y_start #get nearest rect co-ords for that row/col #x1=x_start+w*col x1 = self . col_positions [ col ] y1 = y_start + h * row x2 = x1 + w y2 = y1 + h return x1 , y1 , x2 , y2