pyloid 0.26.6__tar.gz → 0.26.8__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.6 → pyloid-0.26.8}/PKG-INFO +1 -1
- {pyloid-0.26.6 → pyloid-0.26.8}/pyproject.toml +1 -1
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/browser_window.py +2 -2
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/pyloid.py +5 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/LICENSE +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/README.md +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/__init__.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/autostart.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/base_ipc/base.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/base_ipc/event_api.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/base_ipc/window_api.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/ipc.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/monitor.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/rpc.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/serve.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/store.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/timer.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/tray.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/url_interceptor.py +0 -0
- {pyloid-0.26.6 → pyloid-0.26.8}/src/pyloid/utils.py +0 -0
@@ -748,8 +748,8 @@ class _BrowserWindow:
|
|
748
748
|
"""
|
749
749
|
ipcs_init_code = "\n".join(
|
750
750
|
[
|
751
|
-
f"window
|
752
|
-
f"console.log('{ipc.__class__.__name__} object initialized:', window
|
751
|
+
f"window['ipc']['{ipc.__class__.__name__}'] = channel.objects['{ipc.__class__.__name__}'];\n"
|
752
|
+
f"console.log('{ipc.__class__.__name__} object initialized:', window['ipc']['{ipc.__class__.__name__}']);"
|
753
753
|
for ipc in self.IPCs
|
754
754
|
]
|
755
755
|
)
|
@@ -322,6 +322,7 @@ class _Pyloid(QApplication):
|
|
322
322
|
context_menu: bool = False,
|
323
323
|
dev_tools: bool = False,
|
324
324
|
transparent: bool = False,
|
325
|
+
IPCs: List[PyloidIPC] = [],
|
325
326
|
) -> BrowserWindow:
|
326
327
|
"""
|
327
328
|
Creates a new browser window.
|
@@ -346,6 +347,8 @@ class _Pyloid(QApplication):
|
|
346
347
|
Whether to use developer tools (default is False)
|
347
348
|
transparent : bool, optional
|
348
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 [])
|
349
352
|
|
350
353
|
Returns
|
351
354
|
-------
|
@@ -373,6 +376,7 @@ class _Pyloid(QApplication):
|
|
373
376
|
context_menu,
|
374
377
|
dev_tools,
|
375
378
|
transparent,
|
379
|
+
IPCs,
|
376
380
|
)
|
377
381
|
self.windows_dict[window._window.id] = window
|
378
382
|
# latest_window_id = list(self.windows_dict.keys())[-1]
|
@@ -2337,6 +2341,7 @@ class Pyloid(QObject):
|
|
2337
2341
|
'context_menu': context_menu,
|
2338
2342
|
'dev_tools': dev_tools,
|
2339
2343
|
'transparent': transparent,
|
2344
|
+
'IPCs': IPCs,
|
2340
2345
|
}
|
2341
2346
|
return self.execute_command(
|
2342
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
|