Skip to content

Commit 9eaf3fc

Browse files
committed
Changes that should have been in the previous commit
1 parent 730531f commit 9eaf3fc

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

docs/source/usage.rst

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,12 @@ Backends
6161

6262
Some platforms have multiple ways to take screenshots. In MSS, these are known as *backends*. The :py:func:`mss` functions will normally autodetect which one is appropriate for your situation, but you can override this if you want. For instance, you may know that your specific situation requires a particular backend.
6363

64-
If you want to choose a particular backend, you can use the :py::`backend` keyword to :py:func:`mss`:::
64+
If you want to choose a particular backend, you can use the :py::`backend` keyword to :py:func:`mss`::
6565

6666
with mss(backend="xgetimage") as sct:
6767
...
6868

69-
Instead, you can also directly import the backend you want to use:::
69+
Alternatively, you can also directly import the backend you want to use::
7070

7171
from mss.linux.xgetimage import MSS as mss
7272

@@ -81,11 +81,6 @@ Display
8181

8282
On GNU/Linux, the default display is taken from the :envvar:`DISPLAY` environment variable. You can instead specify which display to use (useful for distant screenshots via SSH) using the :keyword:`display` keyword::
8383

84-
with mss(display=":0.0") as sct:
85-
...
86-
87-
A more specific example (only valid on GNU/Linux):
88-
8984
.. literalinclude:: examples/linux_display_keyword.py
9085
:lines: 9-
9186

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@ ignore = [
192192
]
193193

194194
[tool.ruff.per-file-target-version]
195-
"src/xcbproto/*" = "py312"
195+
"src/xcbproto/*" = "py312"

0 commit comments

Comments
 (0)