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

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

src/p/y/pyqt5-HEAD/examples/network/lightmaps.py   pyqt5(Download)
    def toggleNightMode(self):
        self.invert = not self.invert
        self.update()
 
    def updateMap(self, r):
        self.update(r)
        self._largeMap.longitude = self._normalMap.longitude
        self._largeMap.invalidate()
        self.update()
 
    def resizeEvent(self, event):
    def timerEvent(self, event):
        if not self.zoomed:
            self.activateZoom()
 
        self.update()
        else:
            self.dragPos = event.pos()
            self.update()
 
    def mouseReleaseEvent(self, event):

src/p/y/pyqt5-HEAD/examples/itemviews/puzzle/puzzle.py   pyqt5(Download)
        self.highlightedRect = QRect()
        self.inPlace = 0
        self.update()
 
    def dragEnterEvent(self, event):
    def dragLeaveEvent(self, event):
        updateRect = self.highlightedRect
        self.highlightedRect = QRect()
        self.update(updateRect)
        event.accept()
            event.ignore()
 
        self.update(updateRect)
 
    def dropEvent(self, event):
 
            self.hightlightedRect = QRect()
            self.update(square)
 
            event.setDropAction(Qt.MoveAction)
            self.inPlace -= 1
 
        self.update(square)
 
        itemData = QByteArray()

src/p/y/pyqt5-HEAD/examples/draganddrop/puzzle/puzzle.py   pyqt5(Download)
        self.highlightedRect = QRect()
        self.inPlace = 0
        self.update()
 
    def dragEnterEvent(self, event):
    def dragLeaveEvent(self, event):
        updateRect = self.highlightedRect
        self.highlightedRect = QRect()
        self.update(updateRect)
        event.accept()
            event.ignore()
 
        self.update(updateRect)
 
    def dropEvent(self, event):
 
            self.hightlightedRect = QRect()
            self.update(square)
 
            event.setDropAction(Qt.MoveAction)
            self.inPlace -= 1
 
        self.update(square)
 
        itemData = QByteArray()

src/p/y/pyqt5-HEAD/examples/widgets/scribble.py   pyqt5(Download)
        self.image = loadedImage
        self.modified = False
        self.update()
        return True
 
    def clearImage(self):
        self.image.fill(qRgb(255, 255, 255))
        self.modified = True
        self.update()
 
            newHeight = max(self.height() + 128, self.image.height())
            self.resizeImage(self.image, QSize(newWidth, newHeight))
            self.update()
 
        super(ScribbleArea, self).resizeEvent(event)
 
        rad = self.myPenWidth / 2 + 2
        self.update(QRect(self.lastPoint, endPoint).normalized().adjusted(-rad, -rad, +rad, +rad))
        self.lastPoint = QPoint(endPoint)
 

src/p/y/pyqt5-HEAD/examples/threads/mandelbrot.py   pyqt5(Download)
    def mouseMoveEvent(self, event):
        if event.buttons() & Qt.LeftButton:
            self.pixmapOffset += event.pos() - self.lastDragPos
            self.lastDragPos = QPoint(event.pos())
            self.update()
        self.lastDragPosition = QPoint()
        self.pixmapScale = scaleFactor
        self.update()
 
    def zoom(self, zoomFactor):
        self.curScale *= zoomFactor
        self.update()
    def scroll(self, deltaX, deltaY):
        self.centerX += deltaX * self.curScale
        self.centerY += deltaY * self.curScale
        self.update()
        self.thread.render(self.centerX, self.centerY, self.curScale,

src/p/y/pyqt5-HEAD/examples/painting/painterpaths.py   pyqt5(Download)
    def setFillRule(self, rule):
        self.path.setFillRule(rule)
        self.update()
 
    def setFillGradient(self, color1, color2):
        self.fillColor1 = color1
        self.fillColor2 = color2
        self.update()
    def setPenWidth(self, width):
        self.penWidth = width
        self.update()
 
    def setPenColor(self, color):
        self.penColor = color
        self.update()
    def setRotationAngle(self, degrees):
        self.rotationAngle = degrees
        self.update()
 
    def paintEvent(self, event):

src/p/y/pyqt5-HEAD/examples/painting/basicdrawing/basicdrawing.py   pyqt5(Download)
    def setShape(self, shape):
        self.shape = shape
        self.update()
 
    def setPen(self, pen):
        self.pen = pen
        self.update()
    def setBrush(self, brush):
        self.brush = brush
        self.update()
 
    def setAntialiased(self, antialiased):
        self.antialiased = antialiased
        self.update()
    def setTransformed(self, transformed):
        self.transformed = transformed
        self.update()
 
    def paintEvent(self, event):

src/p/y/pyqt5-HEAD/examples/painting/concentriccircles.py   pyqt5(Download)
    def setFloatBased(self, floatBased):
        self.floatBased = floatBased
        self.update()
 
    def setAntialiased(self, antialiased):
        self.antialiased = antialiased
        self.update()
    def nextAnimationFrame(self):
        self.frameNo += 1
        self.update()
 
    def paintEvent(self, event):

src/p/y/pyqt5-HEAD/examples/widgets/charactermap.py   pyqt5(Download)
    def updateFont(self, fontFamily):
        self.displayFont.setFamily(fontFamily)
        self.squareSize = max(24, QFontMetrics(self.displayFont).xHeight() * 3)
        self.adjustSize()
        self.update()
        self.squareSize = max(24, QFontMetrics(self.displayFont).xHeight() * 3)
        self.adjustSize()
        self.update() 
 
    def updateStyle(self, fontStyle):
        self.squareSize = max(24, QFontMetrics(self.displayFont).xHeight() * 3)
        self.adjustSize()
        self.update()
 
    def updateFontMerging(self, enable):
            self.displayFont.setStyleStrategy(QFont.NoFontMerging)
        self.adjustSize()
        self.update()
 
    def sizeHint(self):
            if unicodedata.category(key_ch) != 'Cn':
                self.characterSelected.emit(key_ch)
            self.update()
        else:
            super(CharacterWidget, self).mousePressEvent(event)

src/p/y/pyqt5-HEAD/examples/widgets/tooltips/tooltips.py   pyqt5(Download)
                self.shapeItems.insert(len(self.shapeItems) - 1, value)
 
                self.update()
 
    def mouseMoveEvent(self, event):
    def moveItemTo(self, pos):
        offset = pos - self.previousPosition
        self.itemInMotion.setPosition(self.itemInMotion.position() + offset)
        self.previousPosition = QPoint(pos)
        self.update()
        shapeItem.setColor(color)
        self.shapeItems.append(shapeItem)
        self.update()
 
    def createToolButton(self, toolTip, icon, member):

  1 | 2  Next