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
:param with_cursor: Include the mouse cursor in screenshots.
48
+
.. class:: XFixesCursorImage
33
49
34
-
GNU/Linux initializations.
50
+
.. class:: XWindowAttributes
35
51
36
-
.. versionadded:: 8.0.0
37
-
`with_cursor` keyword argument.
52
+
.. class:: XImage
38
53
39
-
.. method:: grab(monitor)
54
+
.. class:: XRRModeInfo
40
55
41
-
:rtype::class:`~mss.base.ScreenShot`
42
-
:raises ScreenShotError: When color depth is not 32 (rare).
56
+
.. class:: XRRScreenResources
43
57
44
-
See :meth:`~mss.base.MSSBase.grab()` for details.
58
+
.. class:: XRRCrtcInfo
45
59
46
-
.. function:: error_handler(display, event)
60
+
.. class:: MSS
47
61
48
-
:type display: ctypes.POINTER(Display)
49
-
:param display: The display impacted by the error.
50
-
:type event: ctypes.POINTER(Event)
51
-
:param event: XError details.
52
-
:return int: Always ``0``.
62
+
.. attribute:: core
53
63
54
-
Error handler passed to `X11.XSetErrorHandler()` to catch any error that can happen when calling a X11 function.
55
-
This will prevent Python interpreter crashes.
64
+
.. method:: close()
56
65
57
-
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.
66
+
Clean-up method.
58
67
59
-
.. versionadded:: 3.3.0
68
+
.. versionadded:: 8.0.0
60
69
61
70
Windows
62
71
-------
@@ -67,28 +76,70 @@ Windows
67
76
68
77
.. attribute:: CFUNCTIONS
69
78
79
+
.. versionadded:: 6.1.0
80
+
70
81
.. attribute:: DIB_RGB_COLORS
71
82
72
83
.. attribute:: SRCCOPY
73
84
85
+
.. class:: BITMAPINFOHEADER
86
+
87
+
.. class:: BITMAPINFO
88
+
89
+
.. attribute:: MONITORNUMPROC
90
+
91
+
.. versionadded:: 6.1.0
92
+
93
+
.. class:: MSS
94
+
95
+
.. attribute:: gdi32
96
+
97
+
.. attribute:: user32
98
+
74
99
Methods
75
100
=======
76
101
77
102
.. module:: mss.base
78
103
104
+
.. attribute:: lock
105
+
106
+
.. versionadded:: 6.0.0
107
+
79
108
.. class:: MSSBase
80
109
81
110
The parent's class for every OS implementation.
82
111
112
+
.. attribute:: cls_image
113
+
83
114
.. attribute:: compression_level
84
115
85
116
PNG compression level used when saving the screenshot data into a file (see :py:func:`zlib.compress()` for details).
0 commit comments