pyloid 0.14.2__tar.gz → 0.14.3__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyloid-0.14.2 → pyloid-0.14.3}/LICENSE +1 -1
- {pyloid-0.14.2 → pyloid-0.14.3}/PKG-INFO +1 -1
- {pyloid-0.14.2 → pyloid-0.14.3}/pyproject.toml +1 -1
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/api.py +12 -9
- {pyloid-0.14.2 → pyloid-0.14.3}/README.md +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/__init__.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/autostart.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/browser_window.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/monitor.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/timer.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/tray.py +0 -0
- {pyloid-0.14.2 → pyloid-0.14.3}/src/pyloid/utils.py +0 -0
@@ -198,4 +198,4 @@ Apache License
|
|
198
198
|
distributed under the License is distributed on an "AS IS" BASIS,
|
199
199
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
200
200
|
See the License for the specific language governing permissions and
|
201
|
-
limitations under the License.
|
201
|
+
limitations under the License.
|
@@ -1,12 +1,13 @@
|
|
1
1
|
from PySide6.QtCore import QObject, Slot
|
2
2
|
|
3
|
+
|
3
4
|
class PyloidAPI(QObject):
|
4
5
|
"""
|
5
|
-
PyloidAPI
|
6
|
-
|
6
|
+
PyloidAPI class is derived from PySide6's QObject.
|
7
|
+
It enables communication between JavaScript and Python.
|
7
8
|
|
8
|
-
|
9
|
-
|
9
|
+
Usage Example
|
10
|
+
-------------
|
10
11
|
(Python)
|
11
12
|
```python
|
12
13
|
from pyloid import Pyloid, PyloidAPI, Bridge
|
@@ -41,22 +42,24 @@ class PyloidAPI(QObject):
|
|
41
42
|
```
|
42
43
|
|
43
44
|
"""
|
45
|
+
|
44
46
|
def __init__(self):
|
45
47
|
super().__init__()
|
46
48
|
|
49
|
+
|
47
50
|
def Bridge(*args, **kwargs):
|
48
51
|
"""
|
49
|
-
Bridge
|
52
|
+
Bridge function creates a slot that can be called from JavaScript.
|
50
53
|
|
51
54
|
Parameters
|
52
55
|
----------
|
53
56
|
*args : tuple
|
54
|
-
|
57
|
+
Variable length argument list.
|
55
58
|
**kwargs : dict
|
56
|
-
|
59
|
+
Arbitrary keyword arguments.
|
57
60
|
|
58
|
-
|
59
|
-
|
61
|
+
Usage Example
|
62
|
+
-------------
|
60
63
|
(Python)
|
61
64
|
```python
|
62
65
|
from pyloid import Pyloid, PyloidAPI, Bridge
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|