diff --git a/snlohelper/functions.py b/snlohelper/functions.py index ae7c0144bfe7840f10d0c32970ab5a605c5d1042..e4f514a04ad927b452085024bbe0dc3a67b2d721 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 bfccd28d5479c3ebdcb4a4a03b1980b2c6cc1a6f..f4e648b3dcd1c6f9d52a23d85665b5205150a1c7 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)