pyloid 0.23.19__py3-none-any.whl → 0.23.20__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/pyloid.py CHANGED
@@ -93,13 +93,6 @@ def custom_message_handler(mode, context, message):
93
93
 
94
94
  qInstallMessageHandler(custom_message_handler)
95
95
 
96
-
97
- class _WindowController(QObject):
98
- create_window_signal = Signal(
99
- QApplication, str, int, int, int, int, bool, bool, bool, PyloidRPC
100
- )
101
-
102
-
103
96
  # Only Work in Main Thread
104
97
  class _Pyloid(QApplication):
105
98
  def __init__(
@@ -151,10 +144,7 @@ class _Pyloid(QApplication):
151
144
  if self.single_instance:
152
145
  self._init_single_instance()
153
146
 
154
- self.controller = _WindowController()
155
- self.controller.create_window_signal.connect(
156
- self._create_window_signal_function
157
- )
147
+
158
148
 
159
149
  self.file_watcher = FileWatcher()
160
150
 
@@ -289,38 +279,8 @@ class _Pyloid(QApplication):
289
279
  >>> window = app.create_window(title="New Window", width=1024, height=768)
290
280
  >>> window.show()
291
281
  """
292
- self.controller.create_window_signal.emit(
293
- self,
294
- title,
295
- width,
296
- height,
297
- x,
298
- y,
299
- frame,
300
- context_menu,
301
- dev_tools,
302
- rpc,
303
- )
304
- latest_window_id = list(self.windows_dict.keys())[-1]
305
- return self.windows_dict[latest_window_id]
306
-
307
- def _create_window_signal_function(
308
- self,
309
- app,
310
- title: str,
311
- width: int,
312
- height: int,
313
- x: int,
314
- y: int,
315
- frame: bool,
316
- context_menu: bool,
317
- dev_tools: bool,
318
- # js_apis: List[PyloidAPI] = [],
319
- rpc: Optional[PyloidRPC] = None,
320
- ) -> BrowserWindow:
321
- """Function to create a new browser window."""
322
282
  window = BrowserWindow(
323
- app,
283
+ self,
324
284
  title,
325
285
  width,
326
286
  height,
@@ -332,6 +292,7 @@ class _Pyloid(QApplication):
332
292
  rpc,
333
293
  )
334
294
  self.windows_dict[window._window.id] = window
295
+ # latest_window_id = list(self.windows_dict.keys())[-1]
335
296
  return window
336
297
 
337
298
  def run(self):
@@ -198,4 +198,4 @@ Apache License
198
198
  distributed under the License is distributed on an "AS IS" BASIS,
199
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
200
  See the License for the specific language governing permissions and
201
- limitations under the License.
201
+ limitations under the License.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pyloid
3
- Version: 0.23.19
3
+ Version: 0.23.20
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -8,7 +8,7 @@ pyloid/js_api/base.py,sha256=XD3sqWYAb1nw6VgY3xXsU4ls5xLGrxpOqmLRJm_vBso,8669
8
8
  pyloid/js_api/event_api.py,sha256=w0z1DcmwcmseqfcoZWgsQmFC2iBCgTMVJubTaHeXI1c,957
9
9
  pyloid/js_api/window_api.py,sha256=-isphU3m2wGB5U0yZrSuK_4XiBz2mG45HsjYTUq7Fxs,7348
10
10
  pyloid/monitor.py,sha256=1mXvHm5deohnNlTLcRx4sT4x-stnOIb0dUQnnxN50Uo,28295
11
- pyloid/pyloid.py,sha256=J_4ikznMq8FXVBIykn1jwgPfaxvgMHGj8YmdmgvHlG0,85144
11
+ pyloid/pyloid.py,sha256=y3kHGahvNkJ_4vMESBVHh1j3OU9foM4GLQF2MID3Vhg,84099
12
12
  pyloid/rpc.py,sha256=U3G6d5VgCibT0XwSX6eNhLePNyUG8ejfJSf8F43zBpk,18601
13
13
  pyloid/serve.py,sha256=wJIBqiLr1-8FvBdV3yybeBtVXsu94FfWYKjHL0eQ68s,1444
14
14
  pyloid/store.py,sha256=teoa-HYzwm93Rivcw3AhKw6rAmQqQ_kmF6XYSkC3G_I,4541
@@ -17,7 +17,7 @@ pyloid/timer.py,sha256=RqMsChFUd93cxMVgkHWiIKrci0QDTBgJSTULnAtYT8M,8712
17
17
  pyloid/tray.py,sha256=D12opVEc2wc2T4tK9epaN1oOdeziScsIVNM2uCN7C-A,1710
18
18
  pyloid/url_interceptor.py,sha256=AFjPANDELc9-E-1TnVvkNVc-JZBJYf0677dWQ8LDaqw,726
19
19
  pyloid/utils.py,sha256=J6owgVE1YDOEfcOPmoP9m9Q6nbYDyNEo9uqPsJs5p5g,6644
20
- pyloid-0.23.19.dist-info/LICENSE,sha256=MTYF-6xpRekyTUglRweWtbfbwBL1I_3Bgfbm_SNOuI8,11525
21
- pyloid-0.23.19.dist-info/METADATA,sha256=NzCC1oR3oEWo0X4VnsQiba3DCfMZFUq5ePCxyMgfDDM,2205
22
- pyloid-0.23.19.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
- pyloid-0.23.19.dist-info/RECORD,,
20
+ pyloid-0.23.20.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
21
+ pyloid-0.23.20.dist-info/METADATA,sha256=Qn8_MdAhGtnkEyibjdRgeaMathh3n_eI2ku4dDHA3C4,2205
22
+ pyloid-0.23.20.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
+ pyloid-0.23.20.dist-info/RECORD,,