Esempio n. 1
0
 def createColorDialog(self):
     c = OWColorPalette.ColorPaletteDlg(self, "Color Palette")
     c.createDiscretePalette("discPalette", "Discrete Palette")
     box = c.createBox("otherColors", "Other Colors")
     c.createColorButton(box, "Default", "Default color", QColor(Qt.white))
     c.setColorSchemas(self.colorSettings, self.selectedSchemaIndex)
     return c
Esempio n. 2
0
 def createColorDialog(self):
     c = OWColorPalette.ColorPaletteDlg(self, "Color palette")
     c.createDiscretePalette("discPalette", "Discrete Palette")
     c.createContinuousPalette("contPalette", "Continuous Palette")
     box = c.createBox("otherColors", "Other Colors")
     c.createColorButton(box, "Canvas", "Canvas color",
                         self.graph.color(OWPalette.Canvas))
     c.setColorSchemas(self.colorSettings, self.selectedSchemaIndex)
     return c
 def createColorDialog(self):
     c = OWColorPalette.ColorPaletteDlg(self, "Color Palette")
     c.createDiscretePalette("discPalette", "Discrete Palette")
     c.createContinuousPalette("contPalette", "Continuous Palette")
     box = c.createBox("otherColors", "Other Colors")
     c.createColorButton(box, "Canvas", "Canvas color", Qt.white)
     box.layout().addSpacing(5)
     c.createColorButton(box, "Grid", "Grid color", QColor(215,215,215))
     box.layout().addSpacing(5)
     c.setColorSchemas(self.colorSettings, self.selectedSchemaIndex)
     return c
Esempio n. 4
0
 def createColorDialog(self):
     c = OWColorPalette.ColorPaletteDlg(self, "Color palette")
     c.createDiscretePalette("discPalette", "Discrete palette")
     c.createContinuousPalette("contPalette", "Continuous palette")
     box = c.createBox("otherColors", "Other colors")
     c.createColorButton(box, "Canvas", "Canvas color", QColor(Qt.white))
     #        box.addSpace(5)
     c.createColorButton(box, "Grid", "Grid color", QColor(Qt.black))
     #        box.addSpace(5)
     box.adjustSize()
     c.setColorSchemas(self.colorSettings)
     return c
Esempio n. 5
0
    def createColorDialog(self):
        c = OWColorPalette.ColorPaletteDlg(self, "Color Palette")
        c.createExtendedContinuousPalette("palette",
                                          "Continuous Palette",
                                          initialColor1=QColor(Qt.blue),
                                          initialColor2=QColor(255, 255,
                                                               0).rgb())
        box = c.createBox("otherColors", "Other Colors")

        c.createColorButton(box, "unknown", "Unknown", Qt.gray)
        box.layout().addSpacing(5)
        c.createColorButton(box, "overflow", "Overflow", Qt.black)
        box.layout().addSpacing(5)
        c.createColorButton(box, "underflow", "Underflow", Qt.white)

        box = c.createBox("cellColors", "Cell colors")
        c.createColorButton(box, "background", "Background", Qt.white)
        box.layout().addSpacing(5)
        c.createColorButton(box, "cellOutline", "Cell outline", Qt.gray)
        box.layout().addSpacing(5)
        c.createColorButton(box, "selection", "Selection", Qt.black)

        c.setColorSchemas(self.colorSettings, self.selectedSchemaIndex)
        return c
 def createColorDialog(self):
     c = OWColorPalette.ColorPaletteDlg(self, "Color Palette")
     c.createDiscretePalette("colorPalette", "Discrete Palette")
     c.setColorSchemas(self.colorSettings, self.selectedColorSettingsIndex)
     return c
Esempio n. 7
0
 def createColorDialog(self):
     dlg = OWColorPalette.ColorPaletteDlg(self, "Color Palette")
     dlg.createDiscretePalette("discPalette", "Discrete Palette")
     dlg.setColorSchemas(self.colorSettings, self.selectedSchemaIndex)
     return dlg
Esempio n. 8
0
 def createColorDialog(self):
     c = OWColorPalette.ColorPaletteDlg(self, "Color Palette")
     c.createDiscretePalette("discPalette", "Discrete Palette", OWColorPalette.defaultRGBColors) #defaultColorBrewerPalette)
     c.setColorSchemas(self.colorSettings, self.selectedSchemaIndex)
     return c