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

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

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/pymca/PyMcaMain.py   pymca(Download)
    # TODO why this strange test
    if 1 or QTVERSION < '4.0.0':
        winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
        app.setPalette(winpalette)
    else:
        palette = app.palette()
        role = qt.QPalette.Window           #this is the background
        palette.setColor(role, qt.QColor(238,234,238))

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/PeakIdentifier.py   pymca(Download)
    def focusInEvent(self,event):
        self.setPaletteBackgroundColor(qt.QColor('yellow'))
        # TODO not like focusOutEvent ?
        '''
        if QTVERSION > '4.0.0':
            qt.QLineEdit.focusInEvent(self, event)
        '''
 
    def focusOutEvent(self,event):
        self.setPaletteBackgroundColor(qt.QColor('white'))
def main():
    app  = qt.QApplication(sys.argv)
    winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
    app.setPalette(winpalette)
    if len(sys.argv) > 1:

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/ElementsInfo.py   pymca(Download)
                self.energyValue = value
                Elements.updateDict(energy=value)
            self.energy.setPaletteBackgroundColor(qt.QColor('white'))
            self.infoWidget.setFocus()
        else:
    def focusInEvent(self,event):
        self.setPaletteBackgroundColor(qt.QColor('yellow'))
 
 
    def focusOutEvent(self,event):
        self.setPaletteBackgroundColor(qt.QColor('white'))
def main():
    app  = qt.QApplication([])
    winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
    app.setPalette(winpalette)
    w= ElementsInfo()

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)
        hboxLayout.setSpacing(20)
        hboxLayout.addWidget(qt.HorizontalSpacer(hbox))
        l1=MyQLabel(hbox, bold=True, color=qt.QColor(0,0,0))
        hboxLayout.addWidget(l1)
 

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/PyMcaBatch.py   pymca(Download)
            cfg[i]=cfg[i].decode(sys.getfilesystemencoding()).replace('\n','')
    app=qt.QApplication(sys.argv) 
    winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
    app.setPalette(winpalette)       
    if len(filelist) == 0:

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/plotting/LegendSelector.py   pymca(Download)
        :type style: qt.QColor
        '''
        self.symbolColor = qt.QColor(color)
 
    def setSymbolStyle(self, style):
    def setLineColor(self, color):
        self.lineColor = qt.QColor(color)
 
    def setLineWidth(self, width):
        self.lineWidth = float(width)
            # Background color, must be QBrush
            if idx%2:
                brush = qt.QBrush(qt.QColor(240,240,240))
            else:
                brush = qt.QBrush(qt.Qt.white)
                item[0] = str(value)
            elif role == self.iconColorRole:
                item[1]['color'] = qt.QColor(value)
            elif role == self.iconLineWidthRole:
                item[1]['linewidth'] = int(value)
    for idx, (l, c, s) in enumerate(zip(legends, colors, symbols)):
        ddict = {
            'color': qt.QColor(c),
            'linewidth': 4,
            'symbol': s,

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/Mca2Edf.py   pymca(Download)
            filelist[i]=filelist[i].replace('\n','')
    app=qt.QApplication(sys.argv) 
    winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
    app.setPalette(winpalette)
    app.lastWindowClosed.connect(app.quit)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/pymca/Fit2Spec.py   pymca(Download)
 
    app=qt.QApplication(sys.argv) 
    winpalette = qt.QPalette(qt.QColor(230,240,249),qt.QColor(238,234,238))
    app.setPalette(winpalette)       
    app.lastWindowClosed.conenct(app.quit)

src/p/y/pymca-HEAD/PyMca5/PyMcaGui/physics/xrf/ConcentrationsWidget.py   pymca(Download)
                    fraction = QString("%.4g" % (result['mass fraction'][group]))
            if line % 2:
                color = qt.QColor(255, 250, 205)
            else:
                color = qt.QColor('white')

  1 | 2  Next