12/29/2022 0 Comments Qstring startswith idaProject:Source File: def updatePixmap(self):'Update the cached shadow pixmap.' 'rectsize = QSize(50, 50)left = top = right = bottom = self.radius# Size of the pixmap.pixmapsize = QSize(rectsize.width + left + right,rectsize.height + top + bottom)shadowrect = QRect(QPoint(left, top), rectsize)pixmap = QPixmap(pixmapsize)pixmap.fill(QColor(0, 0, 0, 0))rectfillcolor = (QPalette.Window)pixmap = renderdropshadowframe(pixmap,QRectF(shadowrect),shadowcolor=lor,offset=QPointF(0, 0),radius=self.radius,rectfillcolor=rectfillcolor)self.shadowPixmap = pixmapself.update. Project:Source File: def draw(self, source):if not isinstance(source, DisplayObject):raise TypeError('BitmapData.draw(source): parameter 'source' must be a display object.' )w = source.endXh = QtGui.QPixmap(w, h)(QtCore.Qt.transparent)p = (self.image)if eAntialiasing:p.setRenderHint(, True)else:p.setRenderHint(, False)source.show(p)p.endself.width = wself.height = h. Project:Source File: def createCurveIcons(self):pix = QtGui.QPixmap(self.miconSize)painter = QtGui.QPaintergradient = QtGui.QLinearGradient(0, 0, 0, )tColorAt(0.0, QtGui.QColor(240, 240, 240))tColorAt(1.0, QtGui.QColor(224, 224, 224))brush = QtGui.QBrush(gradient)# The original C code uses undocumented calls to get the names of the# different curve types. 0.5))pixmap.fill(color)painter = QtGui.QPainter(pixmap)tFont(QtGui.QFont('Decorative', 8))painter.drawText(pixmap.rect, QtCore.Qt.AlignCenter, 'Text').tPixmap(pixmap). 1.0))pixmap.fill(color)self.ui.tPixmap(pixmap)# Preview color with transparency and some tAlpha(int(255. Project:Source File: def previewcolor(self):'Shows selected colors in two QLabel widgets.The first shows true color, while the second presents the colorwith an opacity as seen in the timeline and with some dummy textto preview readability.' 'pixmap = QtGui.QPixmap(50, 25)color = QtGui.QColor(.)# Preview tAlpha(int(255.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |