PEATDB/PEATApp.py
def updateTable(self, protein=None, field_name=None):
        """To be called whenever a change to DB needs to be reflected in
            table. """
        if self.DB == None:
            return
        DB=self.DB

        if hasattr(self, 'table') and self.table != None:
            #Update the table model to reflect changes in DB and redraw the table
            model = self.tablemodel
            if self.table.rows < 10000:
                sortcol = self.table.sortcol
            else:
                sortcol = None
            model.update_reclist(DB.data.keys(), self.table.sortcol)
            model.update_columnNames()
            model.update_colors()
            self.table.redrawTable()
        return
To be called whenever a change to DB needs to be reflected in
            table. 
To be called whenever a change to DB needs to be reflected in
table.
To be called whenever a change to DB needs to be reflected in table .
def updateTable(self, protein=None, field_name=None):
        if self.DB == None:
            return
        DB=self.DB
        if hasattr(self, 'table') and self.table != None:
            model = self.tablemodel
            if self.table.rows < 10000:
                sortcol = self.table.sortcol
            else:
                sortcol = None
            model.update_reclist(DB.data.keys(), self.table.sortcol)
            model.update_columnNames()
            model.update_colors()
            self.table.redrawTable()
        return
def updateTable ( self , protein = None , field_name = None ) : if self . DB == None : return DB = self . DB if hasattr ( self , 'table' ) and self . table != None : model = self . tablemodel if self . table . rows < 10000 : sortcol = self . table . sortcol else : sortcol = None model . update_reclist ( DB . data . keys ( ) , self . table . sortcol ) model . update_columnNames ( ) model . update_colors ( ) self . table . redrawTable ( ) return
To be called whenever a change to DB needs to be reflected in
table.
To be called whenever a change to DB needs to be reflected in table .
"""To be called whenever a change to DB needs to be reflected in
            table. """ #Update the table model to reflect changes in DB and redraw the table
self
protein
field_name