Esempio n. 1
0
 def addFeature(self):
     """Add selected features to selected features list.
     """
     selected = self.availableFeatureList.selectedItems()
     for item in selected:
         feature = Clusterer.getFeatureByName(item.text())
         self.availableFeatures &= ~feature
         self.selectedFeatures |= feature
         self.availableFeatureList.takeItem(self.availableFeatureList.row(item))
         self.selectedFeatureList.addItem(item)
Esempio n. 2
0
 def addFeature(self):
     """Add selected features to selected features list.
     """
     selected = self.availableFeatureList.selectedItems()
     for item in selected:
         feature = Clusterer.getFeatureByName(item.text())
         self.availableFeatures &= ~feature
         self.selectedFeatures |= feature
         self.availableFeatureList.takeItem(
             self.availableFeatureList.row(item))
         self.selectedFeatureList.addItem(item)