pyloid 0.14.6__py3-none-any.whl → 0.14.8__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 +24 -0
- pyloid/js_api/window_api.py +12 -0
- {pyloid-0.14.6.dist-info → pyloid-0.14.8.dist-info}/METADATA +1 -1
- {pyloid-0.14.6.dist-info → pyloid-0.14.8.dist-info}/RECORD +6 -6
- {pyloid-0.14.6.dist-info → pyloid-0.14.8.dist-info}/LICENSE +0 -0
- {pyloid-0.14.6.dist-info → pyloid-0.14.8.dist-info}/WHEEL +0 -0
pyloid/browser_window.py
CHANGED
@@ -699,6 +699,30 @@ class BrowserWindow:
|
|
699
699
|
else:
|
700
700
|
self._window.showMaximized()
|
701
701
|
|
702
|
+
def is_fullscreen(self) -> bool:
|
703
|
+
"""
|
704
|
+
Returns True if the window is fullscreen.
|
705
|
+
|
706
|
+
Examples
|
707
|
+
--------
|
708
|
+
>>> app = Pyloid(app_name="Pyloid-App")
|
709
|
+
>>> window = app.create_window("pyloid-window")
|
710
|
+
>>> window.is_fullscreen()
|
711
|
+
"""
|
712
|
+
return self._window.isFullScreen()
|
713
|
+
|
714
|
+
def is_maximized(self) -> bool:
|
715
|
+
"""
|
716
|
+
Returns True if the window is maximized.
|
717
|
+
|
718
|
+
Examples
|
719
|
+
--------
|
720
|
+
>>> app = Pyloid(app_name="Pyloid-App")
|
721
|
+
>>> window = app.create_window("pyloid-window")
|
722
|
+
>>> window.is_maximized()
|
723
|
+
"""
|
724
|
+
return self._window.isMaximized()
|
725
|
+
|
702
726
|
def capture(self, save_path: str) -> Optional[str]:
|
703
727
|
"""
|
704
728
|
Captures the current window.
|
pyloid/js_api/window_api.py
CHANGED
@@ -97,6 +97,18 @@ class WindowAPI(PyloidAPI):
|
|
97
97
|
if window:
|
98
98
|
window.toggle_maximize()
|
99
99
|
|
100
|
+
@Bridge(result=bool)
|
101
|
+
def isFullscreen(self):
|
102
|
+
"""Returns True if the window is fullscreen."""
|
103
|
+
window = self.app.get_window_by_id(self.window_id)
|
104
|
+
return window.is_fullscreen()
|
105
|
+
|
106
|
+
@Bridge(result=bool)
|
107
|
+
def isMaximized(self):
|
108
|
+
"""Returns True if the window is maximized."""
|
109
|
+
window = self.app.get_window_by_id(self.window_id)
|
110
|
+
return window.is_maximized()
|
111
|
+
|
100
112
|
@Bridge(str)
|
101
113
|
def setTitle(self, title: str):
|
102
114
|
"""Sets the title of the window."""
|
@@ -1,17 +1,17 @@
|
|
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=
|
4
|
+
pyloid/browser_window.py,sha256=BYciMcnJ54xETmqkSs_W8aSkdTis6fKPwOKbnXH63U0,38963
|
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
|
8
|
-
pyloid/js_api/window_api.py,sha256=
|
8
|
+
pyloid/js_api/window_api.py,sha256=uxJ4oo9VvPRTZZYpLttKlUJodeza7SQ5qoCg2YoEr44,6657
|
9
9
|
pyloid/monitor.py,sha256=nmcoOmlHeTysrZVT5mmL92ASbqMg8aH-hQg35qKWi0M,27540
|
10
10
|
pyloid/pyloid.py,sha256=3YymePkpM_hKPzvHSSgELuSHkmbDsKW60HnRwwBMY7A,41178
|
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.14.
|
15
|
-
pyloid-0.14.
|
16
|
-
pyloid-0.14.
|
17
|
-
pyloid-0.14.
|
14
|
+
pyloid-0.14.8.dist-info/LICENSE,sha256=F96EzotgWhhpnQTW2TcdoqrMDir1jyEo6H915tGQ-QE,11524
|
15
|
+
pyloid-0.14.8.dist-info/METADATA,sha256=bILCfnhD99u9Lr2psaw7E4RlouVRyV2bLSacYo3K19A,3050
|
16
|
+
pyloid-0.14.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
17
|
+
pyloid-0.14.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|