From b93717904ce75c6fc202528d9cf87eaaf3e449e6 Mon Sep 17 00:00:00 2001 From: Eddy Pedroni Date: Tue, 25 Feb 2025 16:14:25 +0100 Subject: Remove stop functionality from player --- solo-tool-project/src/solo_tool/handlers.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'solo-tool-project/src/solo_tool/handlers.py') diff --git a/solo-tool-project/src/solo_tool/handlers.py b/solo-tool-project/src/solo_tool/handlers.py index 975ce8d..ab7309e 100644 --- a/solo-tool-project/src/solo_tool/handlers.py +++ b/solo-tool-project/src/solo_tool/handlers.py @@ -30,6 +30,11 @@ def seekRelative(st: SoloTool, delta: float) -> Callable[[], None]: st.position += delta return f +def seekAbsolute(st: SoloTool, delta: float) -> Callable[[], None]: + def f(): + st.position = delta + return f + def positionToKeyPoint(st: SoloTool) -> Callable[[], None]: def f(): st.keyPoint = st.position -- cgit v1.2.3