Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def mousePressEvent(self, event):
- if event.buttons() == Qt.LeftButton:
- painter = QPainter()
- painter.drawRect(10, 15, 90, 60)
- """
- QWidget::paintEngine: Should no longer be called
- QPainter::begin: Paint device returned engine == 0, type: 1
- QPainter::drawRects: Painter not active
- """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement