diff options
Diffstat (limited to 'examples/widgets/tutorials/cannon/t13.py')
-rw-r--r-- | examples/widgets/tutorials/cannon/t13.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/tutorials/cannon/t13.py b/examples/widgets/tutorials/cannon/t13.py index aa00825aa..3ac05f435 100644 --- a/examples/widgets/tutorials/cannon/t13.py +++ b/examples/widgets/tutorials/cannon/t13.py @@ -232,6 +232,8 @@ class CannonField(QWidget): self.paint_shot(painter) if not self._game_ended: self.paint_target(painter) + # QPainter needs an explicit end() in PyPy. This will become a context manager in 6.3. + painter.end() def paint_shot(self, painter): painter.setPen(Qt.NoPen) |