You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/api.rst
+11-8Lines changed: 11 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,8 @@ GNU/Linux
16
16
17
17
Contains the latest Xlib or XRANDR function.
18
18
19
+
.. versionadded:: 4.0.0
20
+
19
21
.. class:: MSS
20
22
21
23
.. method:: __init__([display=None])
@@ -60,10 +62,10 @@ GNU/Linux
60
62
61
63
.. method:: grab(monitor)
62
64
63
-
:rtype::class:`mss.base.ScreenShot`
65
+
:rtype::class:`~mss.base.ScreenShot`
64
66
:raises ScreenShotError: When color depth is not 32 (rare).
65
67
66
-
See :meth:`mss.base.MSSMixin.grab()` for details.
68
+
See :meth:`~mss.base.MSSMixin.grab()` for details.
67
69
68
70
.. function:: error_handler(display, event)
69
71
@@ -76,7 +78,7 @@ GNU/Linux
76
78
Error handler passed to `X11.XSetErrorHandler()` to catch any error that can happen when calling a X11 function.
77
79
This will prevent Python interpreter crashes.
78
80
79
-
When such an error happen, a :class:`mss.exception.ScreenShotError` exception is raised and all `XError` information are added to the :attr:`mss.exception.ScreenShotError.details` attribute.
81
+
When such an error happen, a :class:`~mss.exception.ScreenShotError` exception is raised and all `XError` information are added to the :attr:`~mss.exception.ScreenShotError.details` attribute.
80
82
81
83
.. versionadded:: 3.3.0
82
84
@@ -106,7 +108,10 @@ Methods
106
108
107
109
.. method:: close()
108
110
109
-
Clean-up method. Does nothing by default.
111
+
Clean-up method. Does nothing by default. For more information, see specific implementations:
112
+
113
+
- :meth:`~mss.linux.MSS.close()` for GNU/Linux
114
+
- :meth:`~mss.windows.MSS.close()` for Windows
110
115
111
116
.. versionadded:: 4.0.0
112
117
@@ -148,7 +153,7 @@ Methods
148
153
149
154
IOerror: [Errno 22] invalid mode ('wb') or filename: 'sct_1-2019-01-01 21:20:43.114194.png'
150
155
151
-
To fix this, you must provide a custom formatting.
156
+
To fix this, you must provide a custom date formatting.
152
157
153
158
.. method:: shot()
154
159
@@ -204,7 +209,7 @@ Methods
204
209
205
210
.. versionadded:: 3.0.0
206
211
207
-
.. versionadded:: 3.2.0
212
+
.. versionchanged:: 3.2.0
208
213
209
214
The *level* keyword argument to control the PNG compression level.
210
215
@@ -331,5 +336,3 @@ Factory
331
336
.. function:: mss()
332
337
333
338
Factory function to instance the appropriate MSS class.
Copy file name to clipboardExpand all lines: docs/source/where.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ AI, Computer Vison
23
23
Games
24
24
=====
25
25
26
-
- Go Review Partner <https://github.com/pnprog/goreviewpartner>`_, a tool to help analyse and review your game of go (weiqi, baduk) using strong bots;
26
+
- `Go Review Partner <https://github.com/pnprog/goreviewpartner>`_, a tool to help analyse and review your game of go (weiqi, baduk) using strong bots;
27
27
- `Serpent.AI <https://github.com/SerpentAI/SerpentAI>`_, a Game Agent Framework;
0 commit comments