PEATDB/Tables.py
def handle_left_shift_click(self, event):
        """Handle shift click, for selecting multiple cols"""
        self.table.delete('colrect')
        self.delete('rect')
        currcol = self.table.currentcol
        colclicked = self.table.get_col_clicked(event)
        if colclicked > currcol:
            self.table.multiplecollist = range(currcol, colclicked+1)
        elif colclicked < currcol:
            self.table.multiplecollist = range(colclicked, currcol+1)
        else:
            return

        #print self.table.multiplecollist
        for c in self.table.multiplecollist:
            self.draw_rect(c, delete=0)
            self.table.drawSelectedCol(c, delete=0)
        return
Handle shift click, for selecting multiple cols
Handle shift click, for selecting multiple cols
Handle shift click for selecting multiple cols
def handle_left_shift_click(self, event):
        self.table.delete('colrect')
        self.delete('rect')
        currcol = self.table.currentcol
        colclicked = self.table.get_col_clicked(event)
        if colclicked > currcol:
            self.table.multiplecollist = range(currcol, colclicked+1)
        elif colclicked < currcol:
            self.table.multiplecollist = range(colclicked, currcol+1)
        else:
            return
        for c in self.table.multiplecollist:
            self.draw_rect(c, delete=0)
            self.table.drawSelectedCol(c, delete=0)
        return
def handle_left_shift_click ( self , event ) : self . table . delete ( 'colrect' ) self . delete ( 'rect' ) currcol = self . table . currentcol colclicked = self . table . get_col_clicked ( event ) if colclicked > currcol : self . table . multiplecollist = range ( currcol , colclicked + 1 ) elif colclicked < currcol : self . table . multiplecollist = range ( colclicked , currcol + 1 ) else : return for c in self . table . multiplecollist : self . draw_rect ( c , delete = 0 ) self . table . drawSelectedCol ( c , delete = 0 ) return
Handle shift click, for selecting multiple cols
Handle shift click for selecting multiple cols
"""Handle shift click, for selecting multiple cols""" #print self.table.multiplecollist
self
event