Changeset 3513:495ea3b47bd5 in orange


Ignore:
Timestamp:
04/06/07 14:52:18 (7 years ago)
Author:
Gregor <Gregor@…>
Branch:
default
Convert:
6b14477765773473ce38f01c49a6cd384a41e114
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWDlgs.py

    r3503 r3513  
    342342    # DISCRETE COLOR PALETTE 
    343343    # ##################################################### 
    344     def createDiscretePalette(self, boxCaption): 
     344    def createDiscretePalette(self, boxCaption, colorPalette = OWGraphTools.defaultRGBColors): 
    345345        box = OWGUI.widgetBox(self.mainArea, boxCaption) 
    346346        hbox = OWGUI.widgetBox(box, orientation = 'horizontal') 
     
    367367        self.popupMenu.insertItem("Load Color Brewer palette", self.loadCBPalette) 
    368368 
    369         self.discreteColors = [QColor(r,g,b) for (r,g,b) in OWGraphTools.defaultRGBColors] 
     369        self.discreteColors = [QColor(r,g,b) for (r,g,b) in colorPalette] 
    370370        for ind in range(len(self.discreteColors)): 
    371371            self.discListbox.insertItem(OWTools.ColorPixmap(self.discreteColors[ind], 15), "Color %d" % (ind)) 
Note: See TracChangeset for help on using the changeset viewer.