(self, event)
return rowc
get row where event on canvas occurs
get row where event on canvas occurs
get row where event on canvas occurs
def get_row_clicked(self, event):
        """get row where event on canvas occurs"""

        h=self.rowheight
        #get coord on canvas, not window, need this if scrolling
        y = int(self.canvasy(event.y))
        y_start=self.y_start
        rowc = int((int(y)-y_start)/h)
        #rowc = math.floor(rowc)
        #print 'event.y',event.y, 'y',y
        #print 'rowclicked', rowc
        return rowc
def get_row_clicked ( self , event ) : h = self . rowheight #get coord on canvas, not window, need this if scrolling y = int ( self . canvasy ( event . y ) ) y_start = self . y_start rowc = int ( ( int ( y ) - y_start ) / h ) #rowc = math.floor(rowc) #print 'event.y',event.y, 'y',y #print 'rowclicked', rowc return rowc