Skip to content

Commit c300fb7

Browse files
committed
Version 9.0.0
1 parent 780976d commit c300fb7

File tree

6 files changed

+19
-13
lines changed

6 files changed

+19
-13
lines changed

CHANGELOG.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
See Git checking messages for full history.
44

5-
## 8.0.4 (2023/xx/xx)
5+
## 9.0.0 (2023/04/18)
66
- Linux: add failure handling to `XOpenDisplay()` call (fixes #246)
77
- Mac: tiny improvement in moniors finding
88
- Windows: refactored how internal handles are stored (fixes #198)
9-
- Windows: removed side effects when leaving the context manager, resources are all freed
10-
- CI: run tests via xvfb-run on GitHub Actions (#248)
11-
- tests: enhance ``test_get_pixels.py``, and try to fix a random failure at the same time (related to #251)
9+
- Windows: removed side effects when leaving the context manager, resources are all freed (fixes #209)
10+
- CI: run tests via `xvfb-run` on GitHub Actions (#248)
11+
- tests: enhance `test_get_pixels.py`, and try to fix a random failure at the same time (related to #251)
1212
- tests: use `PyVirtualDisplay` instead of `xvfbwrapper` (#249)
1313
- tests: automatic rerun in case of failure (related to #251)
1414
- :heart: contributors: @mgorny, @CTPaHHuK-HEbA

CHANGES.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Technical Changes
22

3+
## 9.0.0 (2023-04-18)
4+
5+
### linux.py
6+
- Removed `XEvent` class. Use `XErrorEvent` instead.
7+
8+
### windows.py
9+
- Added `MSS.close()` method
10+
- Removed `MSS.bmp` attribute
11+
- Removed `MSS.memdc` attribute
12+
313
## 8.0.3 (2023-04-15)
414

515
### linux.py
@@ -17,8 +27,8 @@
1727
### linux.py
1828
- Added `MSS.close()`
1929
- Moved `MSS.__init__()` keyword arguments handling to the base class
20-
- Renamed `error_handler()` function to `__error_handler()`
21-
- Renamed `_validate()` function to `___validate()`
30+
- Renamed `error_handler()` function to `_error_handler()`
31+
- Renamed `validate()` function to `__validate()`
2232
- Renamed `MSS.has_extension()` method to `_is_extension_enabled()`
2333
- Removed `ERROR` namespace
2434
- Removed `MSS.drawable` attribute

docs/source/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ GNU/Linux
4545

4646
Structure that serves as the connection to the X server, and that contains all the information about that X server.
4747

48-
.. class:: Event
48+
.. class:: XErrorEvent
4949

5050
XErrorEvent to debug eventual errors.
5151

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = mss
3-
version = 8.0.4
3+
version = 9.0.0
44
author = Mickaël 'Tiger-222' Schoentgen
55
author_email = [email protected]
66
description = An ultra fast cross-platform multiple screenshots module in pure python using ctypes.

src/mss/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from .exception import ScreenShotError
1212
from .factory import mss
1313

14-
__version__ = "8.0.4"
14+
__version__ = "9.0.0"
1515
__author__ = "Mickaël 'Tiger-222' Schoentgen"
1616
__copyright__ = """
1717
Copyright (c) 2013-2023, Mickaël 'Tiger-222' Schoentgen

src/mss/linux.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,6 @@ class XErrorEvent(Structure):
6565
]
6666

6767

68-
# TODO: remove in v9.0.0
69-
Event = XErrorEvent
70-
71-
7268
class XFixesCursorImage(Structure):
7369
"""
7470
Cursor structure.

0 commit comments

Comments
 (0)