Skip to content

Commit

Permalink
Routine updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ATATC committed Dec 24, 2023
1 parent f9c12f6 commit 6092c1a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 5 additions & 2 deletions leads_dashboard/prototype.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -138,3 +138,6 @@ def root(self) -> _Window:

def show(self) -> None:
self._window.show()

def kill(self) -> None:
self._window.kill()
2 changes: 1 addition & 1 deletion leads_vec/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__: str = "efcc4c6a"
__version__: str = "f9c12f65"
5 changes: 2 additions & 3 deletions leads_vec/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 6092c1a

Please sign in to comment.