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/Data/OWDataTable.py

    r8042 r9546  
    140140        OWWidget.__init__(self, parent, signalManager, "Data Table") 
    141141 
    142         self.inputs = [("Examples", ExampleTable, self.dataset, Multiple + Default)] 
    143         self.outputs = [("Selected Examples", ExampleTable, Default), ("Unselected Examples", ExampleTable)] 
     142        self.inputs = [("Data", ExampleTable, self.dataset, Multiple + Default)] 
     143        self.outputs = [("Selected Data", ExampleTable, Default), ("Other Data", ExampleTable)] 
    144144 
    145145        self.data = {}          # key: id, value: ExampleTable 
     
    582582            selection = [1 if i in selected else 0 for i in range(len(model.examples))] 
    583583            data = model.examples.select(selection) 
    584             self.send("Selected Examples", data if len(data) > 0 else None) 
     584            self.send("Selected Data", data if len(data) > 0 else None) 
    585585            data = model.examples.select(selection, 0) 
    586             self.send("Unselected Examples", data if len(data) > 0 else None) 
    587         else: 
    588             self.send("Selected Examples", None) 
    589             self.send("Unselected Examples", None) 
     586            self.send("Other Data", data if len(data) > 0 else None) 
     587        else: 
     588            self.send("Selected Data", None) 
     589            self.send("Other Data", None) 
    590590             
    591591        self.selectionChangedFlag = False 
Note: See TracChangeset for help on using the changeset viewer.