Changeset 4976:bb9f48f9f90b in orange


Ignore:
Timestamp:
07/15/08 11:25:17 (6 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
17813ca21638788447194ba509399a881355cb16
Message:

added strip when matching items to mark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Prototypes/OWNetwork.py

    r4955 r4976  
    562562    def setMarkInput(self): 
    563563        var = str(self.markInputCombo.currentText()) 
    564          
     564        #print 'combo:',self.markInputCombo.currentText() 
    565565        if self.markInputItems != None and len(self.markInputItems) > 0: 
    566             values = [str(x[var]).upper() for x in self.markInputItems] 
    567             #print 'values',values 
    568             toMark = [i for i,x in enumerate(self.visualize.graph.items) if str(x[var]).upper() in values] 
    569             #print toMark 
     566            values = [str(x[var]).strip().upper() for x in self.markInputItems] 
     567            toMark = [i for (i,x) in enumerate(self.visualize.graph.items) if str(x[var]).strip().upper() in values] 
     568            #print "mark:", toMark 
    570569            self.graph.setMarkedVertices(list(toMark)) 
    571570            self.graph.replot() 
Note: See TracChangeset for help on using the changeset viewer.