Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)
Add a column

src/p/e/PEATDB-2.3/PEATDB/Ekin/Tables.py   PEATDB(Download)
    def __init__(self, E):
        self.E = E        
        TableModel.__init__(self) 
        self.addColumn('name'); self.addColumn('model')
        for d in E.datasets:            

src/p/e/PEATDB-2.3/PEATDB/plugins/PEATSAplugin.py   PEATDB(Download)
    def matrix2Table(self, matrix):
        """Creates a table model from a peatsa matrix"""         
        M = TableModel()
        M.addColumn('Mutations')
 
        fields = matrix.columnHeaders()
        for f in fields:
            M.addColumn(f)

src/p/e/PEATDB-2.3/PEATDB/Actions.py   PEATDB(Download)
            M.addRow(rec)
            for c in cols:
                M.addColumn(c)
                if DB[rec].has_key(c):
                    M.data[rec][c] = DB[rec][c]