Changeset 7717:01c2e6b6c9ab in orange


Ignore:
Timestamp:
03/02/11 12:22:56 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
103a6c96f5ac4d0731930b866e61ffd5fd3f1e20
Message:
  • always process signals from the first widget after unfreeze.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeCanvas/orngSignalManager.py

    r7117 r7717  
    230230        """ 
    231231        self.freezing = max(freeze, 0) 
    232         if freeze: 
    233             self.addEvent("Freezing signal processing (%s)" % str(freeze)) 
     232        if freeze > 0: 
     233            self.addEvent("Freezing signal processing (%s)" % str(freeze), startWidget) 
     234        elif freeze == 0: 
     235            self.addEvent("Unfreezing signal processing", startWidget) 
    234236        else: 
    235             self.addEvent("Unfreezing signal processing") 
    236              
    237         if not freeze and self.widgets != []: 
    238             if startWidget: 
    239                 self.processNewSignals(startWidget) 
    240             else: 
    241                 self.processNewSignals(self.widgets[0]) 
     237            self.addEvent("Invalid freeze value! (by %s)", startWidget, eventVerbosity=0) 
     238             
     239        if self.freezing == 0 and self.widgets != []: 
     240            self.processNewSignals(self.widgets[0]) # always start processing from the first  
     241#            if startWidget: 
     242#                self.processNewSignals(startWidget) 
     243#            else: 
     244#                self.processNewSignals(self.widgets[0]) 
    242245 
    243246    def addWidget(self, widget): 
     
    514517            if link.dynamic: 
    515518                dyn_enable = link.canEnableDynamic(value) 
    516                 print "Dynamic signal enabled", dyn_enable 
    517519                self.setDynamicLinkEnabled(link, dyn_enable) 
    518520                if not dyn_enable: 
Note: See TracChangeset for help on using the changeset viewer.