pyloid 0.16.8__tar.gz → 0.16.9__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {pyloid-0.16.8 → pyloid-0.16.9}/LICENSE +1 -1
- {pyloid-0.16.8 → pyloid-0.16.9}/PKG-INFO +1 -1
- {pyloid-0.16.8 → pyloid-0.16.9}/pyproject.toml +1 -1
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/browser_window.py +6 -44
- {pyloid-0.16.8 → pyloid-0.16.9}/README.md +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/__init__.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/api.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/autostart.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/monitor.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/timer.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/tray.py +0 -0
- {pyloid-0.16.8 → pyloid-0.16.9}/src/pyloid/utils.py +0 -0
@@ -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.
|
@@ -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().
|
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
|
280
|
+
# allow local file access to remote urls
|
281
281
|
self.web_view.settings().setAttribute(
|
282
|
-
QWebEngineSettings.
|
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.
|
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.
|
1719
|
+
window.is_web_engine_view_attribute(QWebEngineSettings.WebAttribute.JavascriptCanAccessClipboard)
|
1758
1720
|
```
|
1759
1721
|
"""
|
1760
1722
|
settings = self.web_view.settings()
|
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
|