(self,event)
get col where event on canvas occurs
get col where event on canvas occurs
get col where event on canvas occurs
def get_col_clicked(self,event):
        """get col where event on canvas occurs"""

        w=self.cellwidth
        x = int(self.canvasx(event.x))
        x_start=self.x_start
        #print self.col_positions
        for colpos in self.col_positions:
            try:
                nextpos=self.col_positions[self.col_positions.index(colpos)+1]
            except:
                nextpos=self.tablewidth
            if x > colpos and x <= nextpos:
                #print 'x=', x, 'colpos', colpos, self.col_positions.index(colpos)
                return self.col_positions.index(colpos)
            else:
                #print None
                pass
def get_col_clicked ( self , event ) : w = self . cellwidth x = int ( self . canvasx ( event . x ) ) x_start = self . x_start #print self.col_positions for colpos in self . col_positions : try : nextpos = self . col_positions [ self . col_positions . index ( colpos ) + 1 ] except : nextpos = self . tablewidth if x > colpos and x <= nextpos : #print 'x=', x, 'colpos', colpos, self.col_positions.index(colpos) return self . col_positions . index ( colpos ) else : #print None pass