pyloid 0.23.0__tar.gz → 0.23.1__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.23.0 → pyloid-0.23.1}/PKG-INFO +1 -1
- {pyloid-0.23.0 → pyloid-0.23.1}/pyproject.toml +1 -1
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/browser_window.py +11 -8
- {pyloid-0.23.0 → pyloid-0.23.1}/LICENSE +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/README.md +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/__init__.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/api.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/autostart.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/js_api/base.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/monitor.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/rpc.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/serve.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/store.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/timer.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/tray.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/url_interceptor.py +0 -0
- {pyloid-0.23.0 → pyloid-0.23.1}/src/pyloid/utils.py +0 -0
@@ -566,14 +566,17 @@ class _BrowserWindow:
|
|
566
566
|
console.error('QWebChannel is not defined.');
|
567
567
|
}
|
568
568
|
"""
|
569
|
-
js_api_init = "\n".join(
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
)
|
576
|
-
|
569
|
+
# js_api_init = "\n".join(
|
570
|
+
# [
|
571
|
+
# f"window['{js_api.__class__.__name__}'] = channel.objects['{js_api.__class__.__name__}'];\n"
|
572
|
+
# f"console.log('{js_api.__class__.__name__} object initialized:', window.pyloid['{js_api.__class__.__name__}']);"
|
573
|
+
# for js_api in self.js_apis
|
574
|
+
# ]
|
575
|
+
# )
|
576
|
+
|
577
|
+
base_api_init = "window['__PYLOID__'] = channel.objects['__PYLOID__'];\n"
|
578
|
+
|
579
|
+
self.web_view.page().runJavaScript(js_code % base_api_init)
|
577
580
|
|
578
581
|
# if splash screen is set, close it when the page is loaded
|
579
582
|
if self.close_on_load and self.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
|