diff --git a/leads_dashboard/prototype.py b/leads_dashboard/prototype.py index e855b9d7..41c4e280 100644 --- a/leads_dashboard/prototype.py +++ b/leads_dashboard/prototype.py @@ -37,8 +37,8 @@ def __init__(self, text_justification="center", no_titlebar=no_title_bar, disable_minimize=True) - self._width: int = width - self._height: int = height + self._width: int = _Window.get_screen_size()[0] if fullscreen else width + self._height: int = _Window.get_screen_size()[1] if fullscreen else height self._fullscreen: bool = fullscreen self._refresh_rate: int = refresh_rate self._refresh_interval: float = float(1 / refresh_rate) @@ -138,3 +138,6 @@ def root(self) -> _Window: def show(self) -> None: self._window.show() + + def kill(self) -> None: + self._window.kill() diff --git a/leads_vec/__version__.py b/leads_vec/__version__.py index ce8c8e36..a8466d8c 100644 --- a/leads_vec/__version__.py +++ b/leads_vec/__version__.py @@ -1 +1 @@ -__version__: str = "efcc4c6a" +__version__: str = "f9c12f65" diff --git a/leads_vec/cli.py b/leads_vec/cli.py index 15325944..3cb587c6 100644 --- a/leads_vec/cli.py +++ b/leads_vec/cli.py @@ -75,9 +75,7 @@ def switch_atbs(): uim = initialize(Window(1080, 720, config.refresh_rate, - CustomRuntimeData(), - fullscreen=False, - no_title_bar=False), render, context, main_controller) + CustomRuntimeData()), render, context, main_controller) class CustomCallback(Callback): def on_fail(self, service: Service, error: Exception) -> None: @@ -134,6 +132,7 @@ def post_suspend(self, e: SuspensionEvent) -> None: ["dtcs_status", "abs_status", "ebi_status", "atbs_status", "comm_status"], ["dtcs", "abs", "ebi", "atbs"] ]) + add_hotkey("ctrl+e", uim.kill) uim.show() uim.rd().comm_kill() return 0