File: index.rst

package info (click to toggle)
python-anyqt 0.2.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 560 kB
  • sloc: python: 4,087; makefile: 192; sh: 3
file content (38 lines) | stat: -rw-r--r-- 1,080 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. AnyQt documentation master file, created by
   sphinx-quickstart on Wed Apr  6 10:32:15 2016.
   You can adapt this file completely to your liking, but it should at least
   contain the root `toctree` directive.

Welcome to AnyQt's documentation!
=================================

AnyQt is a PyQt4/PyQt5 compatibility layer intended as a stepping stone to
full PyQt5 support while still providing support for PyQt4.

The idea is to use use a forward compatible module structure that mimics that
of Qt5, even when using Qt4

By default PyQt5 is used if available, but that can be changed by a QT_API env
variable (which can take either 'pyqt4' or 'pyqt5' values), or setting the
preferred api using the :func:`AnyQt.setpreferredapi`. However if any of the
Qt apis is already imported (listed in `sys.modules`) then it is used instead.

.. note::
   The final choice of api is delayed until the first AnyQt.Qt* module
   is imported


Contents:

.. toctree::
   :maxdepth: 2

   anyqt


Indices and tables
==================

* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`