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/OWQuickSelect.py

    r6913 r9546  
    2929    def __init__(self,parent=None, signalManager = None): 
    3030        OWWidget.__init__(self, parent, signalManager, "Quick Select", wantMainArea=0) 
    31         self.inputs = [("Examples", ExampleTable, self.setData, Default)] 
    32         self.outputs = [("Selected Examples", ExampleTable, Default), ("Remaining Examples", ExampleTable)] 
     31        self.inputs = [("Data", ExampleTable, self.setData, Default)] 
     32        self.outputs = [("Selected Data", ExampleTable, Default), ("Remaining Data", ExampleTable)] 
    3333        self.icons = self.createAttributeIconDict() 
    3434 
     
    9898    def updateOutput(self): 
    9999        if not self.data or not self.selectedAttribute or not self.selectedValues: 
    100             self.send("Selected Examples", None) 
    101             self.send("Remaining Examples", None) 
     100            self.send("Selected Data", None) 
     101            self.send("Remaining Data", None) 
    102102            self.outSelected = self.outRemaining = 0 
    103103            return 
     
    107107        pp.values[attr] = [self.valuesList[j].encode("utf-8") for j in self.selectedValues] 
    108108        selected = pp(self.data) 
    109         self.send("Selected Examples", selected) 
     109        self.send("Selected Data", selected) 
    110110         
    111111        pp = orange.Preprocessor_drop()  
    112112        pp.values[attr] = [self.valuesList[j].encode("utf-8") for j in self.selectedValues] 
    113113        remaining = pp(self.data) 
    114         self.send("Remaining Examples", remaining) 
     114        self.send("Remaining Data", remaining) 
    115115 
    116116        self.outSelected = len(selected) 
Note: See TracChangeset for help on using the changeset viewer.