(self, startrow, endrow, startcol, endcol)
return
Set a block of cells selected
Set a block of cells selected
Set a block of cells selected
def setSelectedCells(self, startrow, endrow, startcol, endcol):
        """Set a block of cells selected"""

        self.currentrow = startrow
        self.currentcol = startcol
        if startrow < 0 or startcol < 0:
            return
        if endrow > self.rows or endcol > self.cols:
            return
        for r in range(startrow, endrow):
            self.multiplerowlist.append(r)
        for c in range(startcol, endcol):
            self.multiplecollist.append(c)
        return
def setSelectedCells ( self , startrow , endrow , startcol , endcol ) : self . currentrow = startrow self . currentcol = startcol if startrow < 0 or startcol < 0 : return if endrow > self . rows or endcol > self . cols : return for r in range ( startrow , endrow ) : self . multiplerowlist . append ( r ) for c in range ( startcol , endcol ) : self . multiplecollist . append ( c ) return