Advertisement
Guest User

Untitled

a guest
Oct 10th, 2015
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1.     def mousePressEvent(self, event):
  2.         if event.buttons() == Qt.LeftButton:
  3.             painter = QPainter()
  4.             painter.drawRect(10, 15, 90, 60)
  5.  
  6. """
  7. QWidget::paintEngine: Should no longer be called
  8. QPainter::begin: Paint device returned engine == 0, type: 1
  9. QPainter::drawRects: Painter not active
  10. """
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement