PyQt.QtGui.
QPainter
device
device
()Возвращает PyQt.GtGui.QPaintDevice
device = painter.device()
drawText
(x, y, text)painter.drawText(25, 25, 'hello world')
end
()fillRect
(rect, brush)rect - PyQt.QtCore.QRect
brush - PyQt.QtGui.QBrush
font
()Возвращает PyQt.QtGui.QFont
font = painter.font()
pen
()Возвращает PyQt.QtGui.QPen
pen = painter.pen()
setFont
(font)font - PyQt.QtGui.QFont
painter.setFont(font)
setPen
(pen)pen - PyQt.QtGui.QPen
painter.setPen(pen)