Ignore:
Timestamp:
01/22/13 15:30:37 (15 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Replaced old orngSignalManager.SignalManager class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/OWBaseWidget.py

    r11260 r11269  
    2727from Orange.utils import debugging as orngDebugging 
    2828from string import * 
    29 from orngSignalManager import * 
     29 
     30from Orange.OrangeCanvas.registry.description import ( 
     31    Default, NonDefault, Single, Multiple, Explicit, Dynamic, 
     32    InputSignal, OutputSignal 
     33) 
     34 
     35from Orange.OrangeCanvas.scheme.widgetsscheme import ( 
     36    SignalLink, WidgetsSignalManager, SignalWrapper 
     37) 
     38 
    3039import OWGUI 
     40 
    3141 
    3242ERROR = 0 
     
    3545TRUE=1 
    3646FALSE=0 
     47 
    3748 
    3849def unisetattr(self, name, value, grandparent): 
     
    163174        self.parent = parent 
    164175        self.needProcessing = 0     # used by signalManager 
    165         if not signalManager: self.signalManager = globalSignalManager        # use the global instance of signalManager  - not advised 
    166         else:                 self.signalManager = signalManager              # use given instance of signal manager 
     176 
     177        self.signalManager = signalManager 
    167178 
    168179        self.inputs = []     # signalName:(dataType, handler, onlySingleConnection) 
     
    193204        self.asyncCalls = [] 
    194205        self.asyncBlock = False 
    195          
    196         self.connect(self, SIGNAL("blockingStateChanged(bool)"), lambda bool :self.signalManager.log.info("Blocking state changed %s %s" % (str(self), str(bool)))) 
    197  
    198206 
    199207    # uncomment this when you need to see which events occured 
     
    398406 
    399407    def send(self, signalName, value, id = None): 
    400         if not self.hasOutputName(signalName): 
    401             print "Warning! Signal '%s' is not a valid signal name for the '%s' widget. Please fix the signal name." % (signalName, self.captionTitle) 
     408#        if not self.hasOutputName(signalName): 
     409#            print "Warning! Signal '%s' is not a valid signal name for the '%s' widget. Please fix the signal name." % (signalName, self.captionTitle) 
    402410 
    403411        if self.linksOut.has_key(signalName): 
Note: See TracChangeset for help on using the changeset viewer.