(self, row, col)
return cx, cy
Get the cell x-y coords as a fraction of canvas size
Get the cell x-y coords as a fraction of canvas size
Get the cell x - y coords as a fraction of canvas size
def getCanvasPos(self, row, col):
        """Get the cell x-y coords as a fraction of canvas size"""
        if self.rows==0:
            return None, None
        x1,y1,x2,y2 = self.getCellCoords(row,col)
        cx=float(x1)/self.tablewidth
        cy=float(y1)/(self.rows*self.rowheight)
        return cx, cy
def getCanvasPos ( self , row , col ) : if self . rows == 0 : return None , None x1 , y1 , x2 , y2 = self . getCellCoords ( row , col ) cx = float ( x1 ) / self . tablewidth cy = float ( y1 ) / ( self . rows * self . rowheight ) return cx , cy