(self, colname=None, coltype=None)
return
Add a column
Add a column
Add a column
def addColumn(self, colname=None, coltype=None):
        """Add a column"""
        index = self.getColumnCount()+ 1
        if colname == None:
            colname=str(index)
        if colname in self.columnNames:
            #print 'name is present!'
            return
        self.columnNames.append(colname)
        self.columnlabels[colname] = colname
        if coltype == None:
            self.columntypes[colname]='text'
        else:
            self.columntypes[colname]=coltype
        return
def addColumn ( self , colname = None , coltype = None ) : index = self . getColumnCount ( ) + 1 if colname == None : colname = str ( index ) if colname in self . columnNames : #print 'name is present!' return self . columnNames . append ( colname ) self . columnlabels [ colname ] = colname if coltype == None : self . columntypes [ colname ] = 'text' else : self . columntypes [ colname ] = coltype return