Ignore:
Timestamp:
01/18/12 10:56:15 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
a367b01157310c282e7919193d767127e7829e26
Message:

Renamed widget channel names in line with the new naming rules/convention.
Added backwards compatibility in orngDoc loadDocument to enable loading of schemas saved before the change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWInteractionGraphProto.py

    r6538 r9546  
    4242        OWWidget.__init__(self, parent, signalManager, "Interaction graph") 
    4343 
    44         self.inputs = [("Examples", ExampleTable, self.setData)] 
    45         self.outputs = [("Examples", ExampleTable), ("Attribute Pair", list), ("Selected Attributes List", list), ("Network", Network)] 
     44        self.inputs = [("Data", ExampleTable, self.setData)] 
     45        self.outputs = [("Data", ExampleTable), ("Interacting Features", list), ("Selected Features", list), ("Network", Network)] 
    4646 
    4747 
     
    166166            for (attr1, attr2, rect) in self.lines: 
    167167                if self.clickInside(rect.rect(), ev.pos()) == 1: 
    168                     self.send("Attribute Pair", [attr1, attr2]) 
     168                    self.send("Interacting Features", [attr1, attr2]) 
    169169                    return 
    170170                 
     
    176176                    (rect1, rect2, rect3, nbrect, text1, text2) = rects 
    177177                    if rect2.pen().color() == Qt.green: 
    178                         self.send("Attribute Pair", [str(text1.text()), str(text2.text())]) 
     178                        self.send("Interacting Features", [str(text1.text()), str(text2.text())]) 
    179179                     
    180180        elif ev.button() == Qt.LeftButton and name == "correlations": 
     
    185185                    (rect1, rect2, rect3, nbrect, text1, text2) = rects 
    186186                    if rect2.pen().color() != Qt.green: 
    187                         self.send("Attribute Pair", [str(text1.text()), str(text2.text())]) 
     187                        self.send("Interacting Features", [str(text1.text()), str(text2.text())]) 
    188188 
    189189        elif ev.button() == Qt.RightButton and (name == "interactions" or name == "correlations") and self.mergeAttributes: 
     
    236236        if self.data == None: return 
    237237        l = [str(self.shownAttribsLB.item(i).text()) for i in range(self.shownAttribsLB.count())] 
    238         self.send("Selected Attributes List", l) 
     238        self.send("Selected Features", l) 
    239239 
    240240 
     
    327327        self.updateCanvas() 
    328328 
    329         self.send("Examples", data) 
     329        self.send("Data", data) 
    330330        self.send("Network", self.graph) 
    331331 
Note: See TracChangeset for help on using the changeset viewer.