Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typos #284

Merged
merged 1 commit into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/source/examples/fps_multiprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def save(queue: Queue) -> None:
# The screenshots queue
queue: Queue = Queue()

# 2 processes: one for grabing and one for saving PNG files
# 2 processes: one for grabbing and one for saving PNG files
Process(target=grab, args=(queue,)).start()
Process(target=save, args=(queue,)).start()
2 changes: 1 addition & 1 deletion docs/source/where.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Who Uses it?
============

This is a non exhaustive list where MSS is integrated or has inspired.
Do not hesistate to `say Hello! <https://github.com/BoboTiG/python-mss/issues>`_ if you are using MSS too.
Do not hesitate to `say Hello! <https://github.com/BoboTiG/python-mss/issues>`_ if you are using MSS too.

- `Airtest <https://github.com/AirtestProject/Airtest>`_, a cross-platform UI automation framework for aames and apps;
- `Automation Framework <https://github.com/capaximperii/AutomationFramework>`_, a Batmans utility;
Expand Down
8 changes: 4 additions & 4 deletions src/mss/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ class XImage(Structure):
("bitmap_bit_order", c_int), # LSBFirst, MSBFirst
("bitmap_pad", c_int), # 8, 16, 32 either XY or ZPixmap
("depth", c_int), # depth of image
("bytes_per_line", c_int), # accelarator to next line
("bytes_per_line", c_int), # accelerator to next line
("bits_per_pixel", c_int), # bits per pixel (ZPixmap)
("red_mask", c_ulong), # bits in z arrangment
("green_mask", c_ulong), # bits in z arrangment
("blue_mask", c_ulong), # bits in z arrangment
("red_mask", c_ulong), # bits in z arrangement
("green_mask", c_ulong), # bits in z arrangement
("blue_mask", c_ulong), # bits in z arrangement
)


Expand Down
4 changes: 2 additions & 2 deletions src/tests/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def run_child_thread(loops: int) -> None:
def test_thread_safety() -> None:
"""Thread safety test for issue #150.

The following code will throw a ScreenShotError exception if thread-safety is not guaranted.
The following code will throw a ScreenShotError exception if thread-safety is not guaranteed.
"""
# Let thread 1 finished ahead of thread 2
thread1 = threading.Thread(target=run_child_thread, args=(30,))
Expand All @@ -100,7 +100,7 @@ def run_child_thread_bbox(loops: int, bbox: tuple[int, int, int, int]) -> None:
def test_thread_safety_regions() -> None:
"""Thread safety test for different regions.

The following code will throw a ScreenShotError exception if thread-safety is not guaranted.
The following code will throw a ScreenShotError exception if thread-safety is not guaranteed.
"""
thread1 = threading.Thread(target=run_child_thread_bbox, args=(100, (0, 0, 100, 100)))
thread2 = threading.Thread(target=run_child_thread_bbox, args=(100, (0, 0, 50, 1)))
Expand Down