Skip to content

Commit 7f6b0b2

Browse files
committed
Add FAQ entries for DISPLAY and QT_API.
1 parent 748c0cb commit 7f6b0b2

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

doc/faq/environment_variables_faq.rst

+12
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ Environment Variables
88
:backlinks: none
99

1010

11+
.. envvar:: DISPLAY
12+
13+
The server and screen on which to place windows. This is interpreted by GUI
14+
toolkits in a backend-specific manner, but generally refers to an `X.org
15+
display name
16+
<https://www.x.org/releases/X11R7.7/doc/man/man7/X.7.xhtml#heading5>`_.
17+
1118
.. envvar:: HOME
1219

1320
The user's home directory. On linux, :envvar:`~ <HOME>` is shorthand for :envvar:`HOME`.
@@ -36,6 +43,11 @@ Environment Variables
3643
The list of directories that are added to Python's standard search list when
3744
importing packages and modules.
3845

46+
.. envvar:: QT_API
47+
48+
The Python Qt wrapper to prefer when using Qt-based backends. See :ref:`the
49+
entry in the usage guide <QT_API-usage>` for more information.
50+
3951
.. _setting-linux-osx-environment-variables:
4052

4153
Setting environment variables in Linux and OS-X

doc/missing-references.json

-7
Original file line numberDiff line numberDiff line change
@@ -4977,13 +4977,6 @@
49774977
]
49784978
},
49794979
"std:envvar": {
4980-
"QT_API": [
4981-
"doc/api/prev_api_changes/api_changes_3.1.0.rst:453",
4982-
"doc/tutorials/introductory/usage.rst:592"
4983-
],
4984-
"DISPLAY": [
4985-
"doc/tutorials/introductory/usage.rst:411"
4986-
],
49874980
"CC": [
49884981
"INSTALL.rst:93",
49894982
"doc/users/prev_whats_new/whats_new_1.5.rst:737"

tutorials/introductory/usage.py

+2
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,8 @@ def my_plotter(ax, data1, data2, param_dict):
482482
# ``GTK3`` backends (*both* ``GTK3Agg`` and ``GTK3Cairo``) depend on Cairo
483483
# (pycairo>=1.11.0 or cairocffi).
484484
#
485+
# .. _QT_API-usage:
486+
#
485487
# How do I select PyQt4 or PySide?
486488
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
487489
#

0 commit comments

Comments
 (0)