PEATDB/Tables.py
def handle_mouse_drag(self, event):
        """Handle mouse moved with button held down, multiple selections"""
        if hasattr(self, 'cellentry'):
            self.cellentry.destroy()
        rowover = self.table.get_row_clicked(event)
        colover = self.table.get_col_clicked(event)
        if rowover == None or self.table.check_PageView(rowover) == 1:
            return
        if rowover >= self.table.rows or self.startrow > self.table.rows:
            return
        else:
            self.endrow = rowover
        #draw the selected rows
        if self.endrow != self.startrow:
            if self.endrow < self.startrow:
                rowlist=range(self.endrow, self.startrow+1)
            else:
                rowlist=range(self.startrow, self.endrow+1)
            self.drawSelectedRows(rowlist)
            self.table.multiplerowlist = rowlist
            self.table.drawMultipleRows(rowlist)
        else:
            self.table.multiplerowlist = []
            self.table.multiplerowlist.append(rowover)
            self.drawSelectedRows(rowover)
            self.table.drawMultipleRows(self.table.multiplerowlist)
        return
Handle mouse moved with button held down, multiple selections
Handle mouse moved with button held down, multiple selections
Handle mouse moved with button held down multiple selections
def handle_mouse_drag(self, event):
        if hasattr(self, 'cellentry'):
            self.cellentry.destroy()
        rowover = self.table.get_row_clicked(event)
        colover = self.table.get_col_clicked(event)
        if rowover == None or self.table.check_PageView(rowover) == 1:
            return
        if rowover >= self.table.rows or self.startrow > self.table.rows:
            return
        else:
            self.endrow = rowover
        if self.endrow != self.startrow:
            if self.endrow < self.startrow:
                rowlist=range(self.endrow, self.startrow+1)
            else:
                rowlist=range(self.startrow, self.endrow+1)
            self.drawSelectedRows(rowlist)
            self.table.multiplerowlist = rowlist
            self.table.drawMultipleRows(rowlist)
        else:
            self.table.multiplerowlist = []
            self.table.multiplerowlist.append(rowover)
            self.drawSelectedRows(rowover)
            self.table.drawMultipleRows(self.table.multiplerowlist)
        return
def handle_mouse_drag ( self , event ) : if hasattr ( self , 'cellentry' ) : self . cellentry . destroy ( ) rowover = self . table . get_row_clicked ( event ) colover = self . table . get_col_clicked ( event ) if rowover == None or self . table . check_PageView ( rowover ) == 1 : return if rowover >= self . table . rows or self . startrow > self . table . rows : return else : self . endrow = rowover if self . endrow != self . startrow : if self . endrow < self . startrow : rowlist = range ( self . endrow , self . startrow + 1 ) else : rowlist = range ( self . startrow , self . endrow + 1 ) self . drawSelectedRows ( rowlist ) self . table . multiplerowlist = rowlist self . table . drawMultipleRows ( rowlist ) else : self . table . multiplerowlist = [ ] self . table . multiplerowlist . append ( rowover ) self . drawSelectedRows ( rowover ) self . table . drawMultipleRows ( self . table . multiplerowlist ) return
Handle mouse moved with button held down, multiple selections
Handle mouse moved with button held down multiple selections
"""Handle mouse moved with button held down, multiple selections""" #draw the selected rows
self
event