(self)
return lists
Get values for current multiple cell selection
Get values for current multiple cell selection
Get values for current multiple cell selection
def getSelectionValues(self):
        """Get values for current multiple cell selection"""
        if len(self.multiplerowlist) == 0 or len(self.multiplecollist) == 0:
            return None
        rows = self.multiplerowlist
        cols = self.multiplecollist
        model = self.model
        if len(rows)<1 or len(cols)<1:
            return None
        #if only one row selected we plot whole col
        if len(rows) == 1:
            rows = self.rowrange
        lists = []

        for c in cols:
            x=[]
            for r in rows:
                #absr = self.get_AbsoluteRow(r)
                val = model.getValueAt(r,c)
                if val == None or val == '':
                    continue
                x.append(val)
            lists.append(x)
        return lists
def getSelectionValues ( self ) : if len ( self . multiplerowlist ) == 0 or len ( self . multiplecollist ) == 0 : return None rows = self . multiplerowlist cols = self . multiplecollist model = self . model if len ( rows ) < 1 or len ( cols ) < 1 : return None #if only one row selected we plot whole col if len ( rows ) == 1 : rows = self . rowrange lists = [ ] for c in cols : x = [ ] for r in rows : #absr = self.get_AbsoluteRow(r) val = model . getValueAt ( r , c ) if val == None or val == '' : continue x . append ( val ) lists . append ( x ) return lists