Mercurial > libervia-backend
comparison libervia/cli/loops.py @ 4206:0f8ea0768a3b
cli (call): implement GUI output:
``call`` commands now handle various output. Beside the original one (now named
``simple``), a new ``gui`` one display a full featured GUI (make with Qt).
PyQt 6 or more needs to be installed.
rel 427
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 11 Feb 2024 23:20:24 +0100 |
parents | ba8ddfdd334f |
children | 0d7bb4df2343 |
comparison
equal
deleted
inserted
replaced
4205:17a8168966f9 | 4206:0f8ea0768a3b |
---|---|
41 import signal | 41 import signal |
42 | 42 |
43 class LiberviaCLILoop: | 43 class LiberviaCLILoop: |
44 | 44 |
45 def __init__(self): | 45 def __init__(self): |
46 self.loop = loop = asyncio.get_event_loop() | 46 self.loop = asyncio.get_event_loop() |
47 | 47 |
48 def run(self, libervia_cli, args, namespace): | 48 def run(self, libervia_cli, args, namespace): |
49 aio.install_glib_asyncio_iteration() | 49 aio.install_glib_asyncio_iteration() |
50 signal.signal(signal.SIGINT, self._on_sigint) | 50 signal.signal(signal.SIGINT, self._on_sigint) |
51 loop = self.loop | 51 loop = self.loop |