pyloid 0.26.8__py3-none-any.whl → 0.27.0__py3-none-any.whl

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/browser_window.py CHANGED
@@ -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 + f"\n{ipcs_init_code}")
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()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.26.8
3
+ Version: 0.27.0
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -3,7 +3,7 @@ pyloid/autostart.py,sha256=4q3YiYt2SKJiJV16FalISYVjg9X7b0l7eAmSWOhfXo0,3679
3
3
  pyloid/base_ipc/base.py,sha256=eo0mkAOCl2h9NDD1sQNYauS15iyEGNpXY5oO5n4nNPo,8052
4
4
  pyloid/base_ipc/event_api.py,sha256=JY8YfyTns4jMwZ43ob9KuGedMBSVML8FuQJHk_bDhFE,959
5
5
  pyloid/base_ipc/window_api.py,sha256=-isphU3m2wGB5U0yZrSuK_4XiBz2mG45HsjYTUq7Fxs,7348
6
- pyloid/browser_window.py,sha256=jD3jqR9pgFTBjZ4b6Kra56hqnPt3FunmzzL8HKz7ZKg,91680
6
+ pyloid/browser_window.py,sha256=yqHOtIyYkdnUTNssmuxJ69CSTZEeIjVsNII_dykt2AI,91843
7
7
  pyloid/custom/titlebar.py,sha256=wkh3h6ZBOYJczTrOosgiTKiSL-ZU92RWQv4FjpnH9u8,3728
8
8
  pyloid/filewatcher.py,sha256=Rdu76qpwXpFNQuapZZBajRN_0svcPZa2s-06IBH4dkk,4062
9
9
  pyloid/ipc.py,sha256=W58SIYN8rfx4ZwdryMCfb-UMy8VkmpFBF-a0wIGhYsA,2256
@@ -17,7 +17,7 @@ pyloid/timer.py,sha256=YNxQn2HVMKBk417YDiz8WwhTmSAkbnGUyFGV2biUEPg,7821
17
17
  pyloid/tray.py,sha256=yHWsOMPpEjZa3W-T-O8Wrwo1GphCV-9adodLdxU0_mA,1673
18
18
  pyloid/url_interceptor.py,sha256=lA-i5Raw-GDRDMKHRO361N6igLfN9_mIANCXwZ_FZT8,771
19
19
  pyloid/utils.py,sha256=x7PGkgreV3l4K-Tke9W06t_VEtq0mH0AYWK695IR-mo,6416
20
- pyloid-0.26.8.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
21
- pyloid-0.26.8.dist-info/METADATA,sha256=nafeKRxX664OxBVtBCNoxTzHuxhVXA_26T_CGDmzzjU,2298
22
- pyloid-0.26.8.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
- pyloid-0.26.8.dist-info/RECORD,,
20
+ pyloid-0.27.0.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
21
+ pyloid-0.27.0.dist-info/METADATA,sha256=an9Ekbt0Bn1QulOm99Hx5pVC-dd8p-3ThNkfWUZ3gXI,2298
22
+ pyloid-0.27.0.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
+ pyloid-0.27.0.dist-info/RECORD,,