annotate libervia/desktop_kivy/__init__.py @ 509:f0ce49b360c8

calls: move webrtc code to core: WebRTC code which can be used in several frontends has been factorized and moved to common `frontends.tools`. Test have been updated consequently. rel 426
author Goffi <goffi@goffi.org>
date Wed, 01 Nov 2023 13:41:07 +0100
parents 0480f883f0a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
370
1a12bbd80943 android: autoconnect profile using the new `profileAutoconnectGet` backend method:
Goffi <goffi@goffi.org>
parents: 342
diff changeset
1 #!/usr/bin/env python3
15
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
2
493
b3cedbee561d refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
Goffi <goffi@goffi.org>
parents: 461
diff changeset
3 # Libervia Desktop-Kivy
461
3c9ba4a694ef dates update
Goffi <goffi@goffi.org>
parents: 378
diff changeset
4 # Copyright (C) 2016-2021 Jérôme Poisson (goffi@goffi.org)
15
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
5
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
6 # This program is free software: you can redistribute it and/or modify
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
7 # it under the terms of the GNU Affero General Public License as published by
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
8 # the Free Software Foundation, either version 3 of the License, or
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
9 # (at your option) any later version.
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
10
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
11 # This program is distributed in the hope that it will be useful,
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
14 # GNU Affero General Public License for more details.
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
15
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
16 # You should have received a copy of the GNU Affero General Public License
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
18
162
ddfadedf2aed core: added __version__ variable
Goffi <goffi@goffi.org>
parents: 126
diff changeset
19 import os.path
ddfadedf2aed core: added __version__ variable
Goffi <goffi@goffi.org>
parents: 126
diff changeset
20
ddfadedf2aed core: added __version__ variable
Goffi <goffi@goffi.org>
parents: 126
diff changeset
21
495
59bdf78bd1d9 installation: update to use hatch following change in backend and other frontends:
Goffi <goffi@goffi.org>
parents: 493
diff changeset
22 __version__ = "0.9.0.dev0"
16
ba14b596b90e host can now be get as a global value:
Goffi <goffi@goffi.org>
parents: 15
diff changeset
23
506
0480f883f0a6 plugin calls: update UI:
Goffi <goffi@goffi.org>
parents: 495
diff changeset
24 class Global:
0480f883f0a6 plugin calls: update UI:
Goffi <goffi@goffi.org>
parents: 495
diff changeset
25
0480f883f0a6 plugin calls: update UI:
Goffi <goffi@goffi.org>
parents: 495
diff changeset
26 def __init__(self):
0480f883f0a6 plugin calls: update UI:
Goffi <goffi@goffi.org>
parents: 495
diff changeset
27 self._host: "cagou_main.LiberviaDesktopKivy" | None = None
0480f883f0a6 plugin calls: update UI:
Goffi <goffi@goffi.org>
parents: 495
diff changeset
28
16
ba14b596b90e host can now be get as a global value:
Goffi <goffi@goffi.org>
parents: 15
diff changeset
29 @property
ba14b596b90e host can now be get as a global value:
Goffi <goffi@goffi.org>
parents: 15
diff changeset
30 def host(self):
ba14b596b90e host can now be get as a global value:
Goffi <goffi@goffi.org>
parents: 15
diff changeset
31 return self._host
ba14b596b90e host can now be get as a global value:
Goffi <goffi@goffi.org>
parents: 15
diff changeset
32 G = Global()
ba14b596b90e host can now be get as a global value:
Goffi <goffi@goffi.org>
parents: 15
diff changeset
33
162
ddfadedf2aed core: added __version__ variable
Goffi <goffi@goffi.org>
parents: 126
diff changeset
34 # this import must be done after G is created
312
772c170b47a9 Python3 port:
Goffi <goffi@goffi.org>
parents: 282
diff changeset
35 from .core import cagou_main
15
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
36
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
37 def run():
493
b3cedbee561d refactoring: rename `cagou` to `libervia.desktop_kivy` + update imports and names following backend changes
Goffi <goffi@goffi.org>
parents: 461
diff changeset
38 host = G._host = cagou_main.LiberviaDesktopKivy()
342
89799148f894 core: use classes and factory to handle platform specific behaviours in a generic way
Goffi <goffi@goffi.org>
parents: 312
diff changeset
39 G.local_platform = cagou_main.local_platform
15
56838ad5c84b files reorganisation, cagou is now launched with python2 cagou.py in src/
Goffi <goffi@goffi.org>
parents: 0
diff changeset
40 host.run()