Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(3) | Call(3) | Derive(0) | Import(0)
src/p/y/pyqt5-HEAD/examples/widgets/wiggly.py pyqt5(Download)
self.setAutoFillBackground(True) newFont = self.font() newFont.setPointSize(newFont.pointSize() + 20) self.setFont(newFont)
def paintEvent(self, event): sineTable = (0, 38, 71, 92, 100, 92, 71, 38, 0, -38, -71, -92, -100, -92, -71, -38) metrics = QFontMetrics(self.font()) x = (self.width() - metrics.width(self.text)) / 2
src/p/y/pyqt5-HEAD/examples/painting/transformations.py pyqt5(Download)
def __init__(self, parent=None): super(RenderArea, self).__init__(parent) newFont = self.font() newFont.setPixelSize(12)