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

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

src/p/y/pyqt5-HEAD/examples/painting/basicdrawing/basicdrawing.py   pyqt5(Download)
            painter.setRenderHint(QPainter.Antialiasing)
 
        for x in range(0, self.width(), 100):
            for y in range(0, self.height(), 100):
                painter.save()
        painter.setPen(self.palette().dark().color())
        painter.setBrush(Qt.NoBrush)
        painter.drawRect(QRect(0, 0, self.width() - 1, self.height() - 1))
 
 

src/p/y/pyqt5-HEAD/examples/painting/concentriccircles.py   pyqt5(Download)
    def paintEvent(self, event):
        painter = QPainter(self)
        painter.setRenderHint(QPainter.Antialiasing, self.antialiased)
        painter.translate(self.width() / 2, self.height() / 2)
 

src/p/y/pyqt5-HEAD/examples/painting/painterpaths.py   pyqt5(Download)
    def paintEvent(self, event):
        painter = QPainter(self)
        painter.setRenderHint(QPainter.Antialiasing)
        painter.scale(self.width() / 100.0, self.height() / 100.0)
        painter.translate(50.0, 50.0)

src/p/y/pyqt5-HEAD/examples/designer/plugins/widgets/polygonwidget.py   pyqt5(Download)
        painter.drawRect(event.rect())
 
        painter.translate(self.width()/2.0, self.height()/2.0)
        painter.rotate(self._angle)
        painter.setBrush(QBrush(self.gradient))

src/a/u/auto-resizing-text-edit-0.1.0/auto_resizing_text_edit/tests/test_auto_resizing_text_edit.py   auto-resizing-text-edit(Download)
 
        assert self.auto_resizing_text_edit.height(), size_hint.height()
        assert self.auto_resizing_text_edit.width(),  parent.width()
 
        self.auto_resizing_text_edit.setPlainText('a\nb\nc\d')

Previous  1 | 2