/
rdev
/
r-audio
Обзор
Документация
Войти
/
rdev
/
r-audio
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
input_tests.py
28 строк
468 B
RandomComp
Big audioplayer update, added dbus support, album cover viewing, some bags fixed, and added frequency analyzer
28 июн 2026, 03:25
28 июн 2026, 03:25
ea84a97
Код
Авторство
О чём код?
from input import Input import asyncio import tui async def input_handler(_: str, input_key: str) -> bool: tui.print(f"inputed key: {input_key}") if input_key == "q": return True return False async def main() -> None: input_obj = Input() input_obj.input.subscribe(input_handler) await input_obj.loop() if __name__ == "__main__": default_settings = tui.switch_to_raw() try: asyncio.run(main()) finally: tui.switch_to_default(default_settings)