mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Docs: add link roles with Sphinx extlinks (#117850)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
78da154067
commit
3375282bb8
62 changed files with 147 additions and 183 deletions
|
@ -43,7 +43,7 @@ appearance---and the curses library will figure out what control codes
|
|||
need to be sent to the terminal to produce the right output. curses
|
||||
doesn't provide many user-interface concepts such as buttons, checkboxes,
|
||||
or dialogs; if you need such features, consider a user interface library such as
|
||||
`Urwid <https://pypi.org/project/urwid/>`_.
|
||||
:pypi:`Urwid`.
|
||||
|
||||
The curses library was originally written for BSD Unix; the later System V
|
||||
versions of Unix from AT&T added many enhancements and new functions. BSD curses
|
||||
|
@ -56,8 +56,7 @@ versions of curses carried by some proprietary Unixes may not support
|
|||
everything, though.
|
||||
|
||||
The Windows version of Python doesn't include the :mod:`curses`
|
||||
module. A ported version called `UniCurses
|
||||
<https://pypi.org/project/UniCurses>`_ is available.
|
||||
module. A ported version called :pypi:`UniCurses` is available.
|
||||
|
||||
|
||||
The Python curses module
|
||||
|
@ -429,8 +428,7 @@ User Input
|
|||
|
||||
The C curses library offers only very simple input mechanisms. Python's
|
||||
:mod:`curses` module adds a basic text-input widget. (Other libraries
|
||||
such as `Urwid <https://pypi.org/project/urwid/>`_ have more extensive
|
||||
collections of widgets.)
|
||||
such as :pypi:`Urwid` have more extensive collections of widgets.)
|
||||
|
||||
There are two methods for getting input from a window:
|
||||
|
||||
|
|
|
@ -1912,7 +1912,7 @@ Subclassing QueueHandler and QueueListener- a ``pynng`` example
|
|||
---------------------------------------------------------------
|
||||
|
||||
In a similar way to the above section, we can implement a listener and handler
|
||||
using `pynng <https://pypi.org/project/pynng/>`_, which is a Python binding to
|
||||
using :pypi:`pynng`, which is a Python binding to
|
||||
`NNG <https://nng.nanomsg.org/>`_, billed as a spiritual successor to ZeroMQ.
|
||||
The following snippets illustrate -- you can test them in an environment which has
|
||||
``pynng`` installed. Just for variety, we present the listener first.
|
||||
|
@ -3575,9 +3575,8 @@ A Qt GUI for logging
|
|||
|
||||
A question that comes up from time to time is about how to log to a GUI
|
||||
application. The `Qt <https://www.qt.io/>`_ framework is a popular
|
||||
cross-platform UI framework with Python bindings using `PySide2
|
||||
<https://pypi.org/project/PySide2/>`_ or `PyQt5
|
||||
<https://pypi.org/project/PyQt5/>`_ libraries.
|
||||
cross-platform UI framework with Python bindings using :pypi:`PySide2`
|
||||
or :pypi:`PyQt5` libraries.
|
||||
|
||||
The following example shows how to log to a Qt GUI. This introduces a simple
|
||||
``QtHandler`` class which takes a callable, which should be a slot in the main
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue