Mercurial > libervia-backend
comparison libervia/cli/call_gui.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 79c8a70e1813 |
children | 00837fa13e5a |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
49 ) | 49 ) |
50 import gi | 50 import gi |
51 | 51 |
52 from libervia.backend.core.i18n import _ | 52 from libervia.backend.core.i18n import _ |
53 from libervia.frontends.tools import aio, display_servers, webrtc | 53 from libervia.frontends.tools import aio, display_servers, webrtc |
54 gi.require_versions({ | 54 |
55 "Gst": "1.0", | 55 gi.require_versions({"Gst": "1.0", "GstWebRTC": "1.0"}) |
56 "GstWebRTC": "1.0" | |
57 }) | |
58 from gi.repository import Gst | 56 from gi.repository import Gst |
59 | |
60 | 57 |
61 | 58 |
62 ICON_SIZE = QSize(45, 45) | 59 ICON_SIZE = QSize(45, 45) |
63 BUTTON_SIZE = QSize(50, 50) | 60 BUTTON_SIZE = QSize(50, 50) |
64 running = False | 61 running = False |
387 self.showFullScreen() | 384 self.showFullScreen() |
388 else: | 385 else: |
389 self.fullscreen_btn.setIcon(self.fullscreen_icon_normal) | 386 self.fullscreen_btn.setIcon(self.fullscreen_icon_normal) |
390 self.showNormal() | 387 self.showNormal() |
391 | 388 |
392 def closeEvent(self, a0: QCloseEvent|None) -> None: | 389 def closeEvent(self, a0: QCloseEvent | None) -> None: |
393 super().closeEvent(a0) | 390 super().closeEvent(a0) |
394 global running | 391 global running |
395 running = False | 392 running = False |
396 | 393 |
397 def toggle_video(self): | 394 def toggle_video(self): |