pyloid 0.23.20__py3-none-any.whl → 0.24.1__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/browser_window.py CHANGED
@@ -155,9 +155,9 @@ class CustomWebPage(QWebEnginePage):
155
155
 
156
156
 
157
157
  class CustomWebEngineView(QWebEngineView):
158
- def __init__(self, parent: "BrowserWindow" = None):
158
+ def __init__(self, parent: "_BrowserWindow" = None):
159
159
  super().__init__(parent._window)
160
- self.parent: "BrowserWindow" = 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()
@@ -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.20
3
+ Version: 0.24.1
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=YKwMCSOds1QVi9N7EGfY0Z7BEjJn8j6HGqRblZlZClA,235
2
2
  pyloid/api.py,sha256=A61Kmddh8BlpT3LfA6NbPQNzFmD95vQ4WKX53oKsGYU,2419
3
3
  pyloid/autostart.py,sha256=K7DQYl4LHItvPp0bt1V9WwaaZmVSTeGvadkcwG-KKrI,3899
4
- pyloid/browser_window.py,sha256=MR01MllBnidZCiBmVZfdFYaMuLi5OZO6lKPJ09Uqoyg,100623
4
+ pyloid/browser_window.py,sha256=xymcffzbsPDNbiwLf-T6OFOILssWF1AC1CfIHT1Sc2M,100917
5
5
  pyloid/custom/titlebar.py,sha256=itzK9pJbZMQ7BKca9kdbuHMffurrw15UijR6OU03Xsk,3894
6
6
  pyloid/filewatcher.py,sha256=3M5zWVUf1OhlkWJcDFC8ZA9agO4Q-U8WdgGpy6kaVz0,4601
7
7
  pyloid/js_api/base.py,sha256=XD3sqWYAb1nw6VgY3xXsU4ls5xLGrxpOqmLRJm_vBso,8669
@@ -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.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,,
20
+ pyloid-0.24.1.dist-info/LICENSE,sha256=MTYF-6xpRekyTUglRweWtbfbwBL1I_3Bgfbm_SNOuI8,11525
21
+ pyloid-0.24.1.dist-info/METADATA,sha256=nTo_4JTSXgt0Uz32V6s6Km-onhjyRc8c5z6FTkape3I,2204
22
+ pyloid-0.24.1.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
23
+ pyloid-0.24.1.dist-info/RECORD,,