pyloid 0.26.5__tar.gz → 0.26.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyloid-0.26.5 → pyloid-0.26.7}/PKG-INFO +1 -1
- {pyloid-0.26.5 → pyloid-0.26.7}/pyproject.toml +1 -1
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/pyloid.py +13 -4
- {pyloid-0.26.5 → pyloid-0.26.7}/LICENSE +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/README.md +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/__init__.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/autostart.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/base_ipc/base.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/base_ipc/event_api.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/base_ipc/window_api.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/browser_window.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/ipc.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/monitor.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/rpc.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/serve.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/store.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/timer.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/tray.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/url_interceptor.py +0 -0
- {pyloid-0.26.5 → pyloid-0.26.7}/src/pyloid/utils.py +0 -0
@@ -64,10 +64,6 @@ import uuid
|
|
64
64
|
from PySide6.QtCore import (
|
65
65
|
QEventLoop,
|
66
66
|
)
|
67
|
-
from typing import (
|
68
|
-
Any,
|
69
|
-
Set,
|
70
|
-
)
|
71
67
|
from platformdirs import (
|
72
68
|
PlatformDirs,
|
73
69
|
)
|
@@ -76,6 +72,9 @@ from .store import (
|
|
76
72
|
)
|
77
73
|
import threading
|
78
74
|
import signal
|
75
|
+
from .ipc import (
|
76
|
+
PyloidIPC,
|
77
|
+
)
|
79
78
|
|
80
79
|
# software backend
|
81
80
|
# os.environ["QT_QUICK_BACKEND"] = "software"
|
@@ -323,6 +322,7 @@ class _Pyloid(QApplication):
|
|
323
322
|
context_menu: bool = False,
|
324
323
|
dev_tools: bool = False,
|
325
324
|
transparent: bool = False,
|
325
|
+
IPCs: List[PyloidIPC] = [],
|
326
326
|
) -> BrowserWindow:
|
327
327
|
"""
|
328
328
|
Creates a new browser window.
|
@@ -347,6 +347,8 @@ class _Pyloid(QApplication):
|
|
347
347
|
Whether to use developer tools (default is False)
|
348
348
|
transparent : bool, optional
|
349
349
|
Whether the window is transparent (default is False)
|
350
|
+
IPCs : List[PyloidIPC], optional
|
351
|
+
List of IPCs to be used in the window (default is [])
|
350
352
|
|
351
353
|
Returns
|
352
354
|
-------
|
@@ -374,6 +376,7 @@ class _Pyloid(QApplication):
|
|
374
376
|
context_menu,
|
375
377
|
dev_tools,
|
376
378
|
transparent,
|
379
|
+
IPCs,
|
377
380
|
)
|
378
381
|
self.windows_dict[window._window.id] = window
|
379
382
|
# latest_window_id = list(self.windows_dict.keys())[-1]
|
@@ -2074,6 +2077,10 @@ class Pyloid(QObject):
|
|
2074
2077
|
'transparent',
|
2075
2078
|
False,
|
2076
2079
|
),
|
2080
|
+
IPCs=params.get(
|
2081
|
+
'IPCs',
|
2082
|
+
[],
|
2083
|
+
),
|
2077
2084
|
)
|
2078
2085
|
result = window
|
2079
2086
|
|
@@ -2284,6 +2291,7 @@ class Pyloid(QObject):
|
|
2284
2291
|
context_menu: bool = False,
|
2285
2292
|
dev_tools: bool = False,
|
2286
2293
|
transparent: bool = False,
|
2294
|
+
IPCs: List[PyloidIPC] = [],
|
2287
2295
|
) -> BrowserWindow:
|
2288
2296
|
"""
|
2289
2297
|
Creates a new browser window.
|
@@ -2333,6 +2341,7 @@ class Pyloid(QObject):
|
|
2333
2341
|
'context_menu': context_menu,
|
2334
2342
|
'dev_tools': dev_tools,
|
2335
2343
|
'transparent': transparent,
|
2344
|
+
'IPCs': IPCs,
|
2336
2345
|
}
|
2337
2346
|
return self.execute_command(
|
2338
2347
|
'create_window',
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|