Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4128125

Browse files
author
Mickaël Schoentgen
committed
Update dates and history, cleanup
1 parent bcdbb56 commit 4128125

File tree

8 files changed

+15
-11
lines changed

8 files changed

+15
-11
lines changed

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@ History:
22

33
<see Git checkin messages for history>
44

5+
dev
6+
- add an example to capture only a part of the screen
7+
- better use of exception mechanism
8+
- Linux: use of hasattr to prevent Exception on early exit
9+
510
2.0.18 2016/12/03
611
- change license to MIT
712
- new contributor: Jochen 'cycomanic' Schroeder

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
MIT License
2-
Copyright (c) 2016, Mickaël 'Tiger-222' Schoentgen
2+
Copyright (c) 2016-2017, Mickaël 'Tiger-222' Schoentgen
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
55

docs/source/conf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@
5151

5252
# General information about the project.
5353
project = 'Python MSS'
54-
copyright = '2013-2016, Tiger-222'
54+
copyright = '2013-2017, Tiger-222'
5555
author = 'Tiger-222'
5656

5757
# The version info for the project you're documenting, acts as replacement for
5858
# |version| and |release|, also used in various other places throughout the
5959
# built documents.
6060
#
6161
# The short X.Y version.
62-
version = '2.0.20'
62+
version = '2.0.21'
6363
# The full version, including alpha/beta/rc tags.
6464
release = 'latest'
6565

@@ -319,7 +319,7 @@
319319
# dir menu entry, description, category)
320320
texinfo_documents = [
321321
(master_doc, 'PythonMSS', 'Python MSS Documentation',
322-
author, 'PythonMSS', 'One line description of project.',
322+
author, 'PythonMSS', 'An ultra fast cross-platform multiple screenshots module in pure python using ctypes.',
323323
'Miscellaneous'),
324324
]
325325

docs/source/examples.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ You can capture only a part of the screen::
144144
# The screen part to capture
145145
mon = {'top': 160, 'left': 160, 'width': 222, 'height': 42}
146146

147-
# Create the screen part
147+
# Save the picture
148148
output = 'sct-{top}x{left}_{width}x{height}.png'.format(**mon)
149149
sct.to_png(sct.get_pixels(mon), output)

examples/callback.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ def on_exists(fname):
2828

2929
try:
3030
with mss() as sct:
31-
# For MacOS X only
32-
# sct.max_displays = 32
31+
# sct.max_displays = 32 # macOS only
3332

3433
print('One screenshot per monitor')
3534
for filename in sct.save():

examples/part-of-screen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def main():
1717
# The screen part to capture
1818
mon = {'top': 160, 'left': 160, 'width': 160, 'height': 135}
1919

20-
# Create the picture
20+
# Save the picture
2121
output = 'sct-{top}x{left}_{width}x{height}.png'.format(**mon)
2222
sct.to_png(sct.get_pixels(mon), output)
2323
print(output)

examples/pil.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def main():
2525
# and raw pixels into `image`.
2626
sct.get_pixels(monitor)
2727

28-
# Create an Image:
28+
# Create an Image
2929
size = (sct.width, sct.height)
3030
img = Image.frombytes('RGB', size, sct.image)
3131

mss/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
from .exception import ScreenshotError
1414
from .factory import mss
1515

16-
__version__ = '2.0.20'
16+
__version__ = '2.0.21'
1717
__author__ = "Mickaël 'Tiger-222' Schoentgen"
1818
__copyright__ = '''
19-
Copyright (c) 2013-2016, Mickaël 'Tiger-222' Schoentgen
19+
Copyright (c) 2013-2017, Mickaël 'Tiger-222' Schoentgen
2020
2121
Permission to use, copy, modify, and distribute this software and its
2222
documentation for any purpose and without fee or royalty is hereby

0 commit comments

Comments
 (0)