From a1986f79f962486ffb5f740944eff2d3dfb166f3 Mon Sep 17 00:00:00 2001 From: Benedikt Burger <67148916+BenediktBurger@users.noreply.github.com> Date: Mon, 6 May 2024 19:22:10 +0200 Subject: [PATCH] Fix lines. --- snlohelper/functions.py | 1 + snlohelper/main_window.py | 1 + 2 files changed, 2 insertions(+) diff --git a/snlohelper/functions.py b/snlohelper/functions.py index ae7c014..e4f514a 100644 --- a/snlohelper/functions.py +++ b/snlohelper/functions.py @@ -48,6 +48,7 @@ class Functions(StrEnum): FOCUS = "Focus" CAVITY = "Cavity" + def open_function(key: str | Functions) -> None: """opens function according to key""" gui.click(*scale(*_functions_coord[key])) diff --git a/snlohelper/main_window.py b/snlohelper/main_window.py index bfccd28..f4e648b 100644 --- a/snlohelper/main_window.py +++ b/snlohelper/main_window.py @@ -22,6 +22,7 @@ function_classes = { FunctionClass = TypeVar("FunctionClass") + class MainWindow: _close_pos = (95, 14) -- GitLab