pyloid 0.16.8__py3-none-any.whl → 0.16.9__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
pyloid/browser_window.py CHANGED
@@ -71,7 +71,7 @@ class CustomWebEngineView(QWebEngineView):
71
71
  self.is_resizing = False
72
72
  self.resize_start_pos = None
73
73
  self.resize_direction = None
74
- self.screen_geometry = self.screen().availableGeometry()
74
+ self.screen_geometry = self.screen().virtualGeometry()
75
75
  self.is_resizing_enabled = True
76
76
 
77
77
  def mouse_press_event(self, event):
@@ -277,48 +277,9 @@ class BrowserWindow:
277
277
  self.set_size(self.width, self.height)
278
278
  self.set_position(self.x, self.y)
279
279
 
280
- # allow local file access to remote urls and screen capture
280
+ # allow local file access to remote urls
281
281
  self.web_view.settings().setAttribute(
282
- QWebEngineSettings.WebAttribute.LocalContentCanAccessRemoteUrls, True
283
- )
284
- self.web_view.settings().setAttribute(
285
- QWebEngineSettings.WebAttribute.ScreenCaptureEnabled, True
286
- )
287
- self.web_view.settings().setAttribute(
288
- QWebEngineSettings.WebAttribute.AutoLoadImages, True
289
- )
290
- self.web_view.settings().setAttribute(
291
- QWebEngineSettings.WebAttribute.JavascriptEnabled, True
292
- )
293
- self.web_view.settings().setAttribute(
294
- QWebEngineSettings.WebAttribute.LocalStorageEnabled, True
295
- )
296
- self.web_view.settings().setAttribute(
297
- QWebEngineSettings.WebAttribute.ErrorPageEnabled, True
298
- )
299
- self.web_view.settings().setAttribute(
300
- QWebEngineSettings.WebAttribute.AutoLoadIconsForPage, True
301
- )
302
- self.web_view.settings().setAttribute(
303
- QWebEngineSettings.WebAttribute.ShowScrollBars, True
304
- )
305
- self.web_view.settings().setAttribute(
306
- QWebEngineSettings.WebAttribute.DnsPrefetchEnabled, True
307
- )
308
- self.web_view.settings().setAttribute(
309
- QWebEngineSettings.WebAttribute.PdfViewerEnabled, True
310
- )
311
- self.web_view.settings().setAttribute(
312
- QWebEngineSettings.WebAttribute.FullScreenSupportEnabled, True
313
- )
314
- self.web_view.settings().setAttribute(
315
- QWebEngineSettings.WebAttribute.JavascriptCanAccessClipboard, True
316
- )
317
- self.web_view.settings().setImageAnimationPolicy(
318
- QWebEngineSettings.ImageAnimationPolicy.Allow
319
- )
320
- self.web_view.settings().setUnknownUrlSchemePolicy(
321
- QWebEngineSettings.UnknownUrlSchemePolicy.AllowAllUnknownUrlSchemes
282
+ QWebEngineSettings.LocalContentCanAccessRemoteUrls, True
322
283
  )
323
284
 
324
285
  # Set icon
@@ -370,6 +331,7 @@ class BrowserWindow:
370
331
  source = bytes(qwebchannel_js.readAll()).decode("utf-8")
371
332
  self.web_view.page().runJavaScript(source)
372
333
  qwebchannel_js.close()
334
+
373
335
 
374
336
  js_code = """
375
337
  if (typeof QWebChannel !== 'undefined') {
@@ -1731,7 +1693,7 @@ class BrowserWindow:
1731
1693
  Examples
1732
1694
  --------
1733
1695
  ```python
1734
- window.set_web_engine_view_attribute(QWebEngineSettings.WebAttribute.ScreenCaptureEnabled, False)
1696
+ window.set_web_engine_view_attribute(QWebEngineSettings.WebAttribute.JavascriptCanAccessClipboard, False)
1735
1697
  ```
1736
1698
  """
1737
1699
  settings = self.web_view.settings()
@@ -1754,7 +1716,7 @@ class BrowserWindow:
1754
1716
  Examples
1755
1717
  --------
1756
1718
  ```python
1757
- window.is_web_engine_view_attribute(QWebEngineSettings.WebAttribute.ScreenCaptureEnabled)
1719
+ window.is_web_engine_view_attribute(QWebEngineSettings.WebAttribute.JavascriptCanAccessClipboard)
1758
1720
  ```
1759
1721
  """
1760
1722
  settings = self.web_view.settings()
@@ -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.1
2
2
  Name: pyloid
3
- Version: 0.16.8
3
+ Version: 0.16.9
4
4
  Summary:
5
5
  Author: aesthetics-of-record
6
6
  Author-email: 111675679+aesthetics-of-record@users.noreply.github.com
@@ -1,7 +1,7 @@
1
1
  pyloid/__init__.py,sha256=OOPhOKNQVmAM8hnfTeE7lHzxb8LsFNcgegBAvDrA-vY,293
2
2
  pyloid/api.py,sha256=np0pFVUlen_GpN0svY0A3awY_ZjVFk-RpHQZZKFUMuo,2157
3
3
  pyloid/autostart.py,sha256=K7DQYl4LHItvPp0bt1V9WwaaZmVSTeGvadkcwG-KKrI,3899
4
- pyloid/browser_window.py,sha256=P5YPbTu6v84B4-KYy_RmbAvgllMw2MTGaNSu5q77bOg,59946
4
+ pyloid/browser_window.py,sha256=t7d77lPZJesBuyc-LG4GYlxBuzLrfTls2p3qLifabEA,58233
5
5
  pyloid/custom/titlebar.py,sha256=itzK9pJbZMQ7BKca9kdbuHMffurrw15UijR6OU03Xsk,3894
6
6
  pyloid/filewatcher.py,sha256=3M5zWVUf1OhlkWJcDFC8ZA9agO4Q-U8WdgGpy6kaVz0,4601
7
7
  pyloid/js_api/event_api.py,sha256=_52yyBonqecmMvJpFW7OMNi_jX8Nrteqw_kI6r-DGG0,951
@@ -11,7 +11,7 @@ pyloid/pyloid.py,sha256=lctL2ZV3tCMUTQ8BEa4NgVb-3yVV_E8cXQXxFJrONI8,43919
11
11
  pyloid/timer.py,sha256=RqMsChFUd93cxMVgkHWiIKrci0QDTBgJSTULnAtYT8M,8712
12
12
  pyloid/tray.py,sha256=D12opVEc2wc2T4tK9epaN1oOdeziScsIVNM2uCN7C-A,1710
13
13
  pyloid/utils.py,sha256=VGZE2liY8_AElEqxVe1YLbk3fWlcAevpRc6oOTTgi-U,1927
14
- pyloid-0.16.8.dist-info/LICENSE,sha256=MTYF-6xpRekyTUglRweWtbfbwBL1I_3Bgfbm_SNOuI8,11525
15
- pyloid-0.16.8.dist-info/METADATA,sha256=uM5gdK4ujV9yGed2XREQZfQgoqzCvRCOeFokQb8djSY,3050
16
- pyloid-0.16.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
- pyloid-0.16.8.dist-info/RECORD,,
14
+ pyloid-0.16.9.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
15
+ pyloid-0.16.9.dist-info/METADATA,sha256=gnt1wmXbU8d6MW5TviO3j5_Pgp0cghxClvX7klXVKOU,3050
16
+ pyloid-0.16.9.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
17
+ pyloid-0.16.9.dist-info/RECORD,,