(self, x)
return col
Get current col from canvas position
Get current col from canvas position
Get current col from canvas position
def getColPosition(self, x):
        """Get current col from canvas position"""

        x_start = self.x_start
        w = self.cellwidth
        i=0
        col=0
        for c in self.col_positions:
            col = i
            if c+w>=x:
                break
            i+=1
        return col
def getColPosition ( self , x ) : x_start = self . x_start w = self . cellwidth i = 0 col = 0 for c in self . col_positions : col = i if c + w >= x : break i += 1 return col