From 46a0f03a0835f9ef2984f8c08f8c95c4e14942d4 Mon Sep 17 00:00:00 2001 From: Ivan Kosarev Date: Sun, 14 Feb 2021 12:56:08 +0200 Subject: [PATCH] [#18] Refine toggling tape pause. --- zx/_gui.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/zx/_gui.py b/zx/_gui.py index 8303da1..4f86187 100644 --- a/zx/_gui.py +++ b/zx/_gui.py @@ -201,7 +201,7 @@ def __init__(self, emulator): 'F1': self._show_help, 'F2': self._save_snapshot, 'F3': self._choose_and_load_file, - 'F6': self.xmachine._toggle_tape_pause, + 'F6': self.__toggle_tape_pause, 'F11': self._toggle_fullscreen, 'PAUSE': self.__toggle_pause, } @@ -438,5 +438,8 @@ def _on_quantum_run(self, event): def __toggle_pause(self): self.xmachine.paused ^= True + def __toggle_tape_pause(self): + self.xmachine._toggle_tape_pause() + def destroy(self): self._window.destroy()