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/Unsupervised/OWInteractionGraph.py

    r9273 r9546  
    4646        OWWidget.__init__(self, parent, signalManager, "Interaction graph") 
    4747 
    48         self.inputs = [("Examples", ExampleTable, self.setData)] 
    49         self.outputs = [("Examples", ExampleTable), ("Attribute Pair", list), ("Selected Attributes List", list)] 
     48        self.inputs = [("Data", ExampleTable, self.setData)] 
     49        self.outputs = [("Data", ExampleTable), ("Interacting Features", list), ("Selected Features", list)] 
    5050 
    5151 
     
    158158            for (attr1, attr2, rect) in self.lines: 
    159159                if rect.contains(pos): 
    160                     self.send("Attribute Pair", [attr1, attr2]) 
     160                    self.send("Interacting Features", [attr1, attr2]) 
    161161                    return 
    162162        elif ev.button() == Qt.LeftButton and name == "interactions": 
     
    165165                if 1 in [item.contains(pos) for item in rects]: 
    166166                    (rect1, rect2, rect3, nbrect, text1, text2) = rects 
    167                     self.send("Attribute Pair", [str(text1.toPlainText()), str(text2.toPlainText())]) 
     167                    self.send("Interacting Features", [str(text1.toPlainText()), str(text2.toPlainText())]) 
    168168 
    169169        elif ev.button() == Qt.RightButton and name == "interactions" and self.mergeAttributes: 
     
    209209        if self.data == None: return 
    210210        l = [str(self.shownAttribsLB.item(i).text()) for i in range(self.shownAttribsLB.count())] 
    211         self.send("Selected Attributes List", l) 
     211        self.send("Selected Features", l) 
    212212 
    213213 
     
    348348        #self.canvasR.update() 
    349349 
    350         self.send("Examples", data) 
     350        self.send("Data", data) 
    351351 
    352352 
Note: See TracChangeset for help on using the changeset viewer.