File tree Expand file tree Collapse file tree 11 files changed +35
-22
lines changed Expand file tree Collapse file tree 11 files changed +35
-22
lines changed Original file line number Diff line number Diff line change 2
2
3
3
<see Git checking messages for history>
4
4
5
+ 4.0.0 2018/12/23
6
+ - MSS: renamed MSSBase to MSSMixin in base.py
7
+
5
8
3.3.2 2018/11/20
6
9
- new contributors: hugovk, Andreas Buhr
7
10
- MSS: do monitor detection in MSS constructor (fixes #79)
Original file line number Diff line number Diff line change
1
+ 4.0.0 (201x-xx-xx)
2
+ ==================
3
+
4
+ base.py
5
+ -------
6
+ - Renamed ``MSSBase `` class to ``MSSMixin ``.
7
+
8
+
1
9
3.3.0 (2018-09-04)
2
10
==================
3
11
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ GNU/Linux
24
24
:rtype: :class: `mss.base.ScreenShot `
25
25
:raises ScreenShotError: When color depth is not 32 (rare).
26
26
27
- See :meth: `mss.base.MSSBase .grab() ` for details.
27
+ See :meth: `mss.base.MSSMixin .grab() ` for details.
28
28
29
29
.. function :: error_handler(display, event)
30
30
@@ -46,10 +46,12 @@ Methods
46
46
47
47
.. module :: mss.base
48
48
49
- .. class :: MSSBase
49
+ .. class :: MSSMixin
50
50
51
51
The parent's class for every OS implementation.
52
52
53
+ .. versionchanged :: 4.0.0
54
+
53
55
.. method :: grab(region)
54
56
55
57
:param dict monitor: region's coordinates.
@@ -146,7 +148,7 @@ Methods
146
148
Properties
147
149
==========
148
150
149
- .. class :: MSSBase
151
+ .. class :: MSSMixin
150
152
151
153
.. attribute :: monitors
152
154
@@ -266,4 +268,4 @@ Factory
266
268
267
269
Factory function to instance the appropriate MSS class.
268
270
269
- :rtype: :class: `mss.base.MSSBase `
271
+ :rtype: :class: `mss.base.MSSMixin `
Original file line number Diff line number Diff line change 29
29
# built documents.
30
30
#
31
31
# The short X.Y version.
32
- version = "3.3.2 "
32
+ version = "4.0.0 "
33
33
34
34
# The full version, including alpha/beta/rc tags.
35
35
release = "latest"
Original file line number Diff line number Diff line change 13
13
from .exception import ScreenShotError
14
14
from .factory import mss
15
15
16
- __version__ = "3.3.2 "
16
+ __version__ = "4.0.0 "
17
17
__author__ = "Mickaël 'Tiger-222' Schoentgen"
18
18
__copyright__ = """
19
19
Copyright (c) 2013-2018, Mickaël 'Tiger-222' Schoentgen
Original file line number Diff line number Diff line change 11
11
from .tools import to_png
12
12
13
13
14
- class MSSBase (object ):
14
+ class MSSMixin (object ):
15
15
""" This class will be overloaded by a system specific one. """
16
16
17
17
cls_image = ScreenShot # type: object
18
18
compression_level = 6 # type: int
19
19
20
20
def __enter__ (self ):
21
- # type: () -> MSSBase
21
+ # type: () -> MSSMixin
22
22
""" For the cool call `with MSS() as mss:`. """
23
23
24
24
return self
Original file line number Diff line number Diff line change 12
12
import ctypes .util
13
13
import sys
14
14
15
- from .base import MSSBase
15
+ from .base import MSSMixin
16
16
from .exception import ScreenShotError
17
17
from .screenshot import Size
18
18
@@ -55,7 +55,7 @@ def __repr__(self):
55
55
return "{}<{} {}>" .format (type (self ).__name__ , self .origin , self .size )
56
56
57
57
58
- class MSS (MSSBase ):
58
+ class MSS (MSSMixin ):
59
59
"""
60
60
Multiple ScreenShots implementation for macOS.
61
61
It uses intensively the CoreGraphics library.
@@ -180,7 +180,7 @@ def monitors(self):
180
180
def grab (self , monitor ):
181
181
# type: (Dict[str, int]) -> ScreenShot
182
182
"""
183
- See :meth:`MSSBase .grab <mss.base.MSSBase .grab>` for full details.
183
+ See :meth:`MSSMixin .grab <mss.base.MSSMixin .grab>` for full details.
184
184
"""
185
185
186
186
# Convert PIL bbox style
Original file line number Diff line number Diff line change 8
8
import ctypes .util
9
9
import os
10
10
11
- from .base import MSSBase
11
+ from .base import MSSMixin
12
12
from .exception import ScreenShotError
13
13
14
14
__all__ = ("MSS" ,)
@@ -138,7 +138,7 @@ class XRRCrtcInfo(ctypes.Structure):
138
138
]
139
139
140
140
141
- class MSS (MSSBase ):
141
+ class MSS (MSSMixin ):
142
142
"""
143
143
Multiple ScreenShots implementation for GNU/Linux.
144
144
It uses intensively the Xlib and its Xrandr extension.
Original file line number Diff line number Diff line change 9
9
import ctypes
10
10
import ctypes .wintypes
11
11
12
- from .base import MSSBase
12
+ from .base import MSSMixin
13
13
from .exception import ScreenShotError
14
14
15
15
__all__ = ("MSS" ,)
@@ -49,7 +49,7 @@ class BITMAPINFO(ctypes.Structure):
49
49
]
50
50
51
51
52
- class MSS (MSSBase ):
52
+ class MSS (MSSMixin ):
53
53
""" Multiple ScreenShots implementation for Microsoft Windows. """
54
54
55
55
_bbox = {"height" : 0 , "width" : 0 }
Original file line number Diff line number Diff line change 7
7
import pytest
8
8
9
9
import mss
10
- from mss .base import MSSBase
10
+ from mss .base import MSSMixin
11
11
from mss .exception import ScreenShotError
12
12
13
13
@@ -33,7 +33,7 @@ def test_factory_systems(monkeypatch):
33
33
# GNU/Linux
34
34
monkeypatch .setattr (platform , "system" , lambda : "LINUX" )
35
35
with mss .mss () as sct :
36
- assert isinstance (sct , MSSBase )
36
+ assert isinstance (sct , MSSMixin )
37
37
monkeypatch .undo ()
38
38
39
39
# macOS
You can’t perform that action at this time.
0 commit comments