pyloid 0.26.4__tar.gz → 0.26.6__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.26.4
3
+ Version: 0.26.6
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "pyloid"
3
- version = "0.26.4"
3
+ version = "0.26.6"
4
4
  description = ""
5
5
  authors = ["aesthetics-of-record <111675679+aesthetics-of-record@users.noreply.github.com>"]
6
6
  readme = "README.md"
@@ -444,6 +444,9 @@ class _BrowserWindow:
444
444
  ]
445
445
 
446
446
  for ipc in IPCs:
447
+ ipc.window_id: str = self.id
448
+ ipc.window: 'BrowserWindow' = self
449
+ ipc.pyloid: 'Pyloid' = self.app.pyloid_wrapper
447
450
  self.IPCs.append(ipc)
448
451
 
449
452
  self.shortcuts = {}
@@ -74,7 +74,7 @@ class PyloidIPC(QObject):
74
74
  super().__init__()
75
75
  self.window_id: str = None
76
76
  self.window: 'BrowserWindow' = None
77
- self.app: 'Pyloid' = None
77
+ self.pyloid: 'Pyloid' = None
78
78
 
79
79
 
80
80
  def Bridge(
@@ -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"
@@ -2074,6 +2073,10 @@ class Pyloid(QObject):
2074
2073
  'transparent',
2075
2074
  False,
2076
2075
  ),
2076
+ IPCs=params.get(
2077
+ 'IPCs',
2078
+ [],
2079
+ ),
2077
2080
  )
2078
2081
  result = window
2079
2082
 
@@ -2284,6 +2287,7 @@ class Pyloid(QObject):
2284
2287
  context_menu: bool = False,
2285
2288
  dev_tools: bool = False,
2286
2289
  transparent: bool = False,
2290
+ IPCs: List[PyloidIPC] = [],
2287
2291
  ) -> BrowserWindow:
2288
2292
  """
2289
2293
  Creates a new browser 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