Changeset 1926:f8dfe8b6d33c in orange-bioinformatics


Ignore:
Timestamp:
12/03/13 14:13:12 (5 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Update the gene info when the list of organisms becomes available.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orangecontrib/bio/widgets/OWSelectGenes.py

    r1925 r1926  
    428428        self._updateActions() 
    429429 
    430         self._inittask = Task( 
    431             function=lambda: 
    432                 [(taxid, taxonomy.name(taxid)) 
    433                   for taxid in taxonomy.common_taxids()]) 
     430        def list_available_organisms(): 
     431            return [(taxid, taxonomy.name(taxid)) 
     432                    for taxid in taxonomy.common_taxids()] 
     433 
     434        self._inittask = Task(function=list_available_organisms) 
    434435 
    435436        self._inittask.finished.connect(self._onInit) 
     
    450451 
    451452        self.pb.hide() 
     453 
     454        if self.taxid in self.taxidindex: 
     455            self._updateGeneInfo() 
    452456 
    453457    def _updateGeneInfo(self): 
Note: See TracChangeset for help on using the changeset viewer.