Skip to content

Commit 78e5a8d

Browse files
authored
Fix a few typos (#208)
1 parent 3ae002b commit 78e5a8d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

mss/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def grab(self, monitor):
6868
"""
6969
Retrieve screen pixels for a given monitor.
7070
71-
Note: *monitor* can be a tuple like PIL.Image.grab() accepts.
71+
Note: *monitor* can be a tuple like the one PIL.Image.grab() accepts.
7272
7373
:param monitor: The coordinates and size of the box to capture.
7474
See :meth:`monitors <monitors>` for object details.

mss/darwin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def _monitors_impl(self):
164164
all_monitors = CGRect()
165165
self._monitors.append({})
166166

167-
# Each monitors
167+
# Each monitor
168168
display_count = c_uint32(0)
169169
active_displays = (c_uint32 * self.max_displays)()
170170
core.CGGetActiveDisplayList(

mss/factory.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ def mss(**kwargs):
1919
# type: (Any) -> MSSBase
2020
""" Factory returning a proper MSS class instance.
2121
22-
It detects the plateform we are running on
23-
and choose the most adapted mss_class to take
22+
It detects the platform we are running on
23+
and chooses the most adapted mss_class to take
2424
screenshots.
2525
2626
It then proxies its arguments to the class for

mss/linux.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ def has_extension(self, extension):
335335
def _get_display(self, disp=None):
336336
"""
337337
Retrieve a thread-safe display from XOpenDisplay().
338-
In multithreading, if the thread who creates *display* is dead, *display* will
338+
In multithreading, if the thread that creates *display* is dead, *display* will
339339
no longer be valid to grab the screen. The *display* attribute is replaced
340340
with *_display_dict* to maintain the *display* values in multithreading.
341341
Since the current thread and main thread are always alive, reuse their
@@ -411,7 +411,7 @@ def _monitors_impl(self):
411411
}
412412
)
413413

414-
# Each monitors
414+
# Each monitor
415415
# A simple benchmark calling 10 times those 2 functions:
416416
# XRRGetScreenResources(): 0.1755971429956844 s
417417
# XRRGetScreenResourcesCurrent(): 0.0039125580078689 s

mss/windows.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def _set_cfunctions(self):
152152
) # type: ignore
153153

154154
def _set_dpi_awareness(self):
155-
""" Set DPI aware to capture full screen on Hi-DPI monitors. """
155+
""" Set DPI awareness to capture full screen on Hi-DPI monitors. """
156156

157157
version = sys.getwindowsversion()[:2] # pylint: disable=no-member
158158
if version >= (6, 3):
@@ -169,7 +169,7 @@ def _set_dpi_awareness(self):
169169
def _get_srcdc(self):
170170
"""
171171
Retrieve a thread-safe HDC from GetWindowDC().
172-
In multithreading, if the thread who creates *srcdc* is dead, *srcdc* will
172+
In multithreading, if the thread that creates *srcdc* is dead, *srcdc* will
173173
no longer be valid to grab the screen. The *srcdc* attribute is replaced
174174
with *_srcdc_dict* to maintain the *srcdc* values in multithreading.
175175
Since the current thread and main thread are always alive, reuse their *srcdc* value first.
@@ -198,7 +198,7 @@ def _monitors_impl(self):
198198
}
199199
)
200200

201-
# Each monitors
201+
# Each monitor
202202
def _callback(monitor, data, rect, dc_):
203203
# types: (int, HDC, LPRECT, LPARAM) -> int
204204
"""
@@ -226,7 +226,7 @@ def _grab_impl(self, monitor):
226226
"""
227227
Retrieve all pixels from a monitor. Pixels have to be RGB.
228228
229-
In the code, there are few interesting things:
229+
In the code, there are a few interesting things:
230230
231231
[1] bmi.bmiHeader.biHeight = -height
232232

0 commit comments

Comments
 (0)