Hi, I would like to use QPainter as QMutexLocker in a with-statement, but: >>> pixmap = Qt.QPixmap(200, 200) >>> with Qt.QPainter(pixmap) as painter: ... painter.drawLine(0, 0, 200, 200) ... Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: __exit__ >>> Gerard