Ignore:
Timestamp:
03/07/12 13:09:54 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
4ee31b0becac69e66f7bd50ae140101ebd8f1436
Message:

Using VariableListModel for displaying features in 'Split Selection' combo box (fixes #1117).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Classify/OWITree.py

    r9671 r10457  
    1111from orngDataCaching import * 
    1212 
     13from OWItemModels import VariableListModel 
     14 
    1315class FixedTreeLearner(orange.Learner): 
    1416    def __init__(self, classifier, name): 
     
    183185        self.targetCombo.clear() 
    184186        if self.data: 
    185             self.attrsCombo.addItems([str(a) for a in data.domain.attributes]) 
     187            model = VariableListModel(list(data.domain.attributes)) 
     188            self.attrsCombo.setModel(model) 
    186189            self.basstat = getCached(data, orange.DomainBasicAttrStat, (data,)) 
    187190             
Note: See TracChangeset for help on using the changeset viewer.