pyloid 0.23.20__tar.gz → 0.24.1__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.
- {pyloid-0.23.20 → pyloid-0.24.1}/LICENSE +1 -1
- {pyloid-0.23.20 → pyloid-0.24.1}/PKG-INFO +1 -1
- {pyloid-0.23.20 → pyloid-0.24.1}/pyproject.toml +1 -1
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/browser_window.py +21 -17
- {pyloid-0.23.20 → pyloid-0.24.1}/README.md +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/__init__.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/api.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/autostart.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/custom/titlebar.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/filewatcher.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/js_api/base.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/js_api/event_api.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/js_api/window_api.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/monitor.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/pyloid.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/rpc.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/serve.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/store.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/thread_pool.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/timer.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/tray.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/src/pyloid/url_interceptor.py +0 -0
- {pyloid-0.23.20 → pyloid-0.24.1}/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.
|
@@ -155,9 +155,9 @@ class CustomWebPage(QWebEnginePage):
|
|
155
155
|
|
156
156
|
|
157
157
|
class CustomWebEngineView(QWebEngineView):
|
158
|
-
def __init__(self, parent: "
|
158
|
+
def __init__(self, parent: "_BrowserWindow" = None):
|
159
159
|
super().__init__(parent._window)
|
160
|
-
self.parent: "
|
160
|
+
self.parent: "_BrowserWindow" = parent
|
161
161
|
|
162
162
|
# Custom Web Page
|
163
163
|
self.custom_page = CustomWebPage()
|
@@ -316,8 +316,7 @@ class _BrowserWindow:
|
|
316
316
|
self.id = str(uuid.uuid4()) # Generate unique ID
|
317
317
|
self._window = QMainWindow()
|
318
318
|
self.web_view = CustomWebEngineView(self)
|
319
|
-
|
320
|
-
|
319
|
+
|
321
320
|
if rpc:
|
322
321
|
self.rpc = rpc
|
323
322
|
self.rpc_url = rpc.url
|
@@ -350,27 +349,26 @@ class _BrowserWindow:
|
|
350
349
|
self.shortcuts = {}
|
351
350
|
self.close_on_load = True
|
352
351
|
self.splash_screen = None
|
353
|
-
###########################################################################################
|
352
|
+
###########################################################################################
|
354
353
|
# RPC 서버가 없으면 추가하지 않음
|
355
354
|
if not self.rpc:
|
356
|
-
return
|
357
|
-
|
355
|
+
return
|
356
|
+
|
358
357
|
self.rpc.pyloid = self.app.pyloid_wrapper
|
359
358
|
# self.rpc.window = self.window_wrapper
|
360
|
-
|
359
|
+
|
361
360
|
# RPC 서버 중복 방지
|
362
361
|
if self.rpc in self.app.rpc_servers:
|
363
|
-
return
|
364
|
-
|
362
|
+
return
|
363
|
+
|
365
364
|
# RPC 서버 추가
|
366
365
|
self.app.rpc_servers.add(self.rpc)
|
367
|
-
|
366
|
+
|
368
367
|
# Start unique RPC servers
|
369
368
|
server_thread = threading.Thread(target=self.rpc.start, daemon=True)
|
370
369
|
server_thread.start()
|
371
|
-
###########################################################################################
|
370
|
+
###########################################################################################
|
372
371
|
|
373
|
-
|
374
372
|
def _set_custom_frame(
|
375
373
|
self,
|
376
374
|
use_custom: bool,
|
@@ -487,6 +485,9 @@ class _BrowserWindow:
|
|
487
485
|
# Remove title bar and borders (if needed)
|
488
486
|
if not self.frame:
|
489
487
|
self._window.setWindowFlags(Qt.FramelessWindowHint)
|
488
|
+
self._window.setAttribute(Qt.WA_TranslucentBackground)
|
489
|
+
self.web_view.setAttribute(Qt.WA_TranslucentBackground)
|
490
|
+
self.web_view.page().setBackgroundColor(Qt.transparent)
|
490
491
|
|
491
492
|
# Disable default context menu
|
492
493
|
if not self.context_menu:
|
@@ -810,6 +811,9 @@ class _BrowserWindow:
|
|
810
811
|
self._window.setWindowFlags(Qt.Window)
|
811
812
|
else:
|
812
813
|
self._window.setWindowFlags(Qt.FramelessWindowHint)
|
814
|
+
self._window.setAttribute(Qt.WA_TranslucentBackground)
|
815
|
+
self.web_view.setAttribute(Qt.WA_TranslucentBackground)
|
816
|
+
self.web_view.page().setBackgroundColor(Qt.transparent)
|
813
817
|
if was_visible:
|
814
818
|
self._window.show()
|
815
819
|
|
@@ -897,7 +901,7 @@ class _BrowserWindow:
|
|
897
901
|
def _remove_from_app_windows(self):
|
898
902
|
"""Removes the window from the app's window list."""
|
899
903
|
self.app.windows_dict.pop(self.id)
|
900
|
-
|
904
|
+
|
901
905
|
if not self.app.windows_dict:
|
902
906
|
self.app.quit() # Quit the app if all windows are closed
|
903
907
|
|
@@ -960,14 +964,14 @@ class _BrowserWindow:
|
|
960
964
|
self._window.show()
|
961
965
|
self._window.raise_()
|
962
966
|
self._window.activateWindow()
|
963
|
-
|
967
|
+
|
964
968
|
# was_on_top = bool(self._window.windowFlags() & Qt.WindowStaysOnTopHint)
|
965
969
|
# if not was_on_top:
|
966
970
|
# self._window.setWindowFlag(Qt.WindowStaysOnTopHint, True)
|
967
971
|
# self._window.show()
|
968
|
-
|
972
|
+
|
969
973
|
# self._window.activateWindow()
|
970
|
-
|
974
|
+
|
971
975
|
# if not was_on_top:
|
972
976
|
# self._window.setWindowFlag(Qt.WindowStaysOnTopHint, False)
|
973
977
|
# self._window.show()
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|