Changeset 1748:3a6c3d41aaee in orange-bioinformatics for _bioinformatics/widgets/OWSetEnrichment.py


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

Test for the presence of 'self.signalManager'.

A default global signalManager is no longer provided by OWBaseWidget.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _bioinformatics/widgets/OWSetEnrichment.py

    r1726 r1748  
    8484        self.loadSettings() 
    8585         
    86         self.signalManager.freeze(self).push() 
     86        if self.signalManager: 
     87            self.signalManager.freeze(self).push() 
    8788        QTimer.singleShot(50, self.updateHierarchy) 
    8889         
     
    211212            self.genesets = all 
    212213        finally: 
    213             self.signalManager.freeze(self).pop() #setFreeze(self.signalManager.freezing - 1) 
     214            if self.signalManager: 
     215                self.signalManager.freeze(self).pop() 
    214216         
    215217    def setData(self, data=None): 
     
    574576    w = OWSetEnrichment() 
    575577    w.updateHierarchy() 
    576     data = orange.ExampleTable("../../../doc/datasets/brown-selected") 
     578    data = orange.ExampleTable("brown-selected") 
    577579#    data = orange.ExampleTable("../human") 
    578580#    print cProfile.runctx("w.setData(data)", globals(), locals()) 
Note: See TracChangeset for help on using the changeset viewer.