diff options
Diffstat (limited to 'examples/widgets/tutorials/cannon/t9.py')
| -rw-r--r-- | examples/widgets/tutorials/cannon/t9.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/cannon/t9.py b/examples/widgets/tutorials/cannon/t9.py index 36dcf8fb1..f18144310 100644 --- a/examples/widgets/tutorials/cannon/t9.py +++ b/examples/widgets/tutorials/cannon/t9.py @@ -124,6 +124,8 @@ class CannonField(QWidget): painter.drawPie(QRect(-35, -35, 70, 70), 0, 90 * 16) painter.rotate(-self._current_angle) painter.drawRect(QRect(33, -4, 15, 8)) + # QPainter needs an explicit end() in PyPy. This will become a context manager in 6.3. + painter.end() class MyWidget(QWidget): |
