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( 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")