From b1fd07130606ca8f3804e0bb231446041584d163 Mon Sep 17 00:00:00 2001 From: Stephen Oman Date: Mon, 16 Jun 2025 19:51:36 +0100 Subject: [PATCH 1/2] New matplotlib method for setting window title --- minihack/tiles/window.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minihack/tiles/window.py b/minihack/tiles/window.py index 6e4fc8a8..a28ec443 100644 --- a/minihack/tiles/window.py +++ b/minihack/tiles/window.py @@ -29,7 +29,7 @@ def __init__(self, title): self.fig, self.ax = plt.subplots() # Show the env name in the window title - self.fig.canvas.set_window_title(title) + self.fig.canvas.manager.set_window_title(title) # Turn off x/y axis numbering/ticks self.ax.xaxis.set_ticks_position("none") From f14e66ce4cb30fa532cf28e7052cbb6488e9ad6d Mon Sep 17 00:00:00 2001 From: Stephen Oman Date: Mon, 16 Jun 2025 19:52:05 +0100 Subject: [PATCH 2/2] Update env call for gymnasium api --- minihack/scripts/play_gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minihack/scripts/play_gui.py b/minihack/scripts/play_gui.py index 4968b98d..cd01691d 100644 --- a/minihack/scripts/play_gui.py +++ b/minihack/scripts/play_gui.py @@ -51,7 +51,7 @@ def key_handler(event): ch = ord(event.key) try: - action = env.actions.index(ch) + action = env.unwrapped.actions.index(ch) step(action) except (ValueError, TypeError): print(