(self, value, rowIndex, columnIndex)
return
Changed the dictionary when cell is updated by user
Changed the dictionary when cell is updated by user
Changed the dictionary when cell is updated by user
def setValueAt(self, value, rowIndex, columnIndex):
        """Changed the dictionary when cell is updated by user"""

        name = self.getRecName(rowIndex)
        colname = self.getColumnName(columnIndex)
        coltype = self.columntypes[colname]
        if coltype == 'number':
            try:
                if value == '': #need this to allow deletion of values
                    self.data[name][colname] = ''
                else:
                    self.data[name][colname] = float(value)
            except:
                pass
        else:
            self.data[name][colname] = value
        return
def setValueAt ( self , value , rowIndex , columnIndex ) : name = self . getRecName ( rowIndex ) colname = self . getColumnName ( columnIndex ) coltype = self . columntypes [ colname ] if coltype == 'number' : try : if value == '' : #need this to allow deletion of values self . data [ name ] [ colname ] = '' else : self . data [ name ] [ colname ] = float ( value ) except : pass else : self . data [ name ] [ colname ] = value return