diff options
Diffstat (limited to 'examples/widgets/state-machine/rogue/rogue.py')
-rw-r--r-- | examples/widgets/state-machine/rogue/rogue.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/state-machine/rogue/rogue.py b/examples/widgets/state-machine/rogue/rogue.py index c8e4565ba..255785f95 100644 --- a/examples/widgets/state-machine/rogue/rogue.py +++ b/examples/widgets/state-machine/rogue/rogue.py @@ -180,6 +180,8 @@ class MainWindow(QMainWindow): painter.drawText(QPoint(x_pos, y_pos), self.map[x][y]) x_pos += font_width painter.drawText(QPoint(self.pX * font_width, (self.pY + 2) * font_height), '@') + # QPainter needs an explicit end() in PyPy. This will become a context manager in 6.3. + painter.end() def move_player(self, direction): if direction == self.left: |