Changeset 4953:a0041a58bb41 in orange


Ignore:
Timestamp:
07/11/08 09:56:06 (6 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
f7137507aec3bb9e444e1a852855e5a8e5d1e297
Message:

Color vertices by missing values also

Location:
orange/OrangeWidgets/Prototypes
Files:
2 edited

Legend:

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

    r4946 r4953  
    546546         
    547547    def setItems(self, items=None): 
    548         if self.visualize.graph == None or items == None: 
     548        self.error('') 
     549         
     550        if self.visualize == None or self.visualize.graph == None or items == None: 
    549551            return 
    550552         
  • orange/OrangeWidgets/Prototypes/OWNetworkCanvas.py

    r4925 r4953  
    670670          return 
    671671       
    672       colorIndices = [] 
     672      colorIndices = {} 
    673673       
    674674      if attribute == "(one color)": 
     
    683683                       
    684684              i += 1 
    685                
     685       
     686      colorIndices['?'] = len(colorIndices) 
    686687      self.discPalette.setNumberOfColors(len(colorIndices)) 
    687688       
Note: See TracChangeset for help on using the changeset viewer.