Changeset 4604:7d88faa6b02c in orange


Ignore:
Timestamp:
04/22/08 12:03:41 (6 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
3ca95bfafed1cfac7dde77e0f93acdb30650a4d5
Message:

-a-added context handlers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Associate/OWHierarchicalClustering.py

    r4544 r4604  
    33<description>Hierarchical clustering based on distance matrix, and a dendrogram viewer.</description> 
    44<icon>HierarchicalClustering.png</icon> 
    5 <contact>Ales Erjavec (ales.erjavec324(@at@)email.si)</contact>  
     5<contact>Ales Erjavec (ales.erjavec(@at@)fri.uni-lj.si)</contact>  
    66<prority>1550</priority> 
    77""" 
     
    2828                "TextSize", "LineSpacing", "ZeroOffset", "SelectionMode", "DisableHighlights", 
    2929                "DisableBubble", "ClassifySelected", "CommitOnChange", "ClassifyName"] 
     30    contextHandlers={"":DomainContextHandler("", [ContextField("Annotation", DomainContextHandler.Required)])} 
    3031    def __init__(self, parent=None, signalManager=None): 
    3132        #OWWidget.__init__(self, parent, 'Hierarchical Clustering') 
     
    148149    def dataset(self, data): 
    149150        self.matrix=data 
     151        self.closeContext() 
    150152        if not self.matrix: 
    151153            self.rootCluster=None 
     
    191193        else: 
    192194            self.classificationBox.setDisabled(True) 
    193  
     195        if self.matrixSource=="Example Distance": 
     196            self.openContext("", items) 
    194197        self.constructTree() 
    195198 
Note: See TracChangeset for help on using the changeset viewer.