pyloid 0.26.8__tar.gz → 0.27.0__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.8 → pyloid-0.27.0}/PKG-INFO +1 -1
- {pyloid-0.26.8 → pyloid-0.27.0}/pyproject.toml +1 -1
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/browser_window.py +7 -2
- {pyloid-0.26.8 → pyloid-0.27.0}/LICENSE +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/README.md +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/__init__.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/autostart.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/base_ipc/base.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/base_ipc/event_api.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/base_ipc/window_api.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/ipc.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/monitor.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/rpc.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/serve.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/store.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/timer.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/tray.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/url_interceptor.py +0 -0
- {pyloid-0.26.8 → pyloid-0.27.0}/src/pyloid/utils.py +0 -0
@@ -730,6 +730,10 @@ class _BrowserWindow:
|
|
730
730
|
};
|
731
731
|
// console.log('pyloid.EventAPI object initialized:', window.pyloid.EventAPI);
|
732
732
|
|
733
|
+
window.ipc = {};
|
734
|
+
|
735
|
+
%s
|
736
|
+
|
733
737
|
%s
|
734
738
|
|
735
739
|
document.addEventListener('mousedown', function (e) {
|
@@ -751,13 +755,14 @@ class _BrowserWindow:
|
|
751
755
|
f"window['ipc']['{ipc.__class__.__name__}'] = channel.objects['{ipc.__class__.__name__}'];\n"
|
752
756
|
f"console.log('{ipc.__class__.__name__} object initialized:', window['ipc']['{ipc.__class__.__name__}']);"
|
753
757
|
for ipc in self.IPCs
|
758
|
+
if ipc.__class__.__name__ != "BaseIPC"
|
754
759
|
]
|
755
760
|
)
|
756
761
|
|
757
762
|
base_ipc_init = "window['__PYLOID__'] = channel.objects['__PYLOID__'];\n"
|
758
763
|
|
759
|
-
self.web_view.page().runJavaScript(js_code % base_ipc_init
|
760
|
-
|
764
|
+
self.web_view.page().runJavaScript(js_code % (base_ipc_init, ipcs_init_code))
|
765
|
+
|
761
766
|
# if splash screen is set, close it when the page is loaded
|
762
767
|
if self.close_on_load and self.splash_screen:
|
763
768
|
self.close_splash_screen()
|
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
|