Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(18)  |  Call(18)  |  Derive(0)  |  Import(0)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/plotting/LegendSelector.py   pymca(Download)
        self.symbolStyle = qt.Qt.SolidPattern
        self.symbolColor = qt.Qt.green
        self.symbolOutlineBrush = qt.QBrush(qt.Qt.white)
 
        # Control widget size: sizeHint "is the only acceptable
            #linePath.lineTo(2.5,0.5)
            linePen = qt.QPen(
                qt.QBrush(self.lineColor),
                (self.lineWidth / self.height()),
                self.lineStyle,
                qt.Qt.FlatCap
            )
            llist.append((linePath,
                          linePen,
                          qt.QBrush(self.lineColor)))
            symbolPath.translate(symbolOffset)
            symbolBrush = qt.QBrush(
                self.symbolColor,
                self.symbolStyle
            )
            # Background color, must be QBrush
            if idx%2:
                brush = qt.QBrush(qt.QColor(240,240,240))
            else:
                brush = qt.QBrush(qt.Qt.white)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/XMCDWindow.py   pymca(Download)
        self.color = color
        self.colorDict = {
            groups[0] : qt.QBrush(qt.QColor(220, 220, 255)),
            groups[1] : qt.QBrush(qt.QColor(255, 210, 210)),
            '': qt.QBrush(qt.QColor(255, 255, 255))

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/QPeriodicTable.py   pymca(Download)
                       qt.QColor(qt.Qt.gray) ]
 
        self.brush= qt.QBrush()
 
        self.clicked.connect(self.clickedSlot)
    def __setBrush(self):
        role = self.backgroundRole()
        palette = self.palette()
        if self.current and self.selected:
            self.brush= qt.QBrush(self.colors[1])
        elif self.selected:
            self.brush= qt.QBrush(self.colors[0])
        elif self.current:
            self.brush= qt.QBrush(self.colors[2])
            self.brush= qt.QBrush(self.colors[2])
        else:
            self.brush= qt.QBrush()
        palette.setBrush( role,self.brush)
        self.update()

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/FitPeakSelect.py   pymca(Download)
 
        self.selected= 0
        self.brush= qt.QBrush(qt.QColor(qt.Qt.yellow))
 
        self.clicked[()].connect(self.clickedSlot)
            role = self.backgroundRole()
            palette = self.palette()
            palette.setBrush( role, qt.QBrush())
            self.setPalette(palette)
        self.update()

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/math/fitting/McaTable.py   pymca(Download)
                            #function introduced in Qt 4.2.0
                            if QTVERSION >= '4.2.0':
                                item.setBackground(qt.QBrush(color))
                        item.setFlags(qt.Qt.ItemIsSelectable|qt.Qt.ItemIsEnabled)                            
                        col=col+1