(self, y)
return row
Get current row from canvas position
Get current row from canvas position
Get current row from canvas position
def getRowPosition(self, y):
        """Get current row from canvas position"""

        h = self.rowheight
        y_start = self.y_start
        row = (int(y)-y_start)/h
        if row < 0:
            return 0
        if row > self.rows:
            row = self.rows
        return row
def getRowPosition ( self , y ) : h = self . rowheight y_start = self . y_start row = ( int ( y ) - y_start ) / h if row < 0 : return 0 if row > self . rows : row = self . rows return row