Skip to main content

Tools to supplement the official PyQt5 wheels

Project description

PyPI version supported Python versions AppVeyor build status source on GitHub

The PyQt5 wheels do not provide tools such as Qt Designer that were included in the old binary installers. This package aims to provide those in a separate package which is useful for developers while the official PyQt5 wheels stay focused on fulfilling the dependencies of PyQt5 applications.

Installation

yourenv\Scripts\pip.exe install --pre pyqt5-tools~=5.11

You will generally install pyqt5-tools using pip install. In most cases you should be using virtualenv or venv to create isolated environments to install your dependencies in. The above command assumes an env in the directory yourenv. The --pre allows for the latest version to be installed despite not being a full release version. You will have to decide if this is a good option for you at any given point in time. The ~=5.11 specifies a release compatible with 5.11 which will be the latest version of pyqt5-tools built for PyQt5 5.11. If you are using a different PyQt5 version, specify it instead of 5.11. PyPI keeps a list of all available versions.

Usage

For each tool a script is created such that you get files like Scripts\designer.exe to launch the programs. Each one searches up the filesystem tree from your current working directory to find a .env file and loads it if found. If found the environment variable DOT_ENV_DIRECTORY will be set to the directory containing the .env file. With this extra variable you can specify paths relative to the .env location.

PYQTDESIGNERPATH=${PYQTDESIGNERPATH};${DOT_ENV_DIRECTORY}/path/to/my/widgets

Additionally, each pyqt5* wrapper listed below includes a parameter to run a basic example which can be used to see if the plugins are working. These examples are not intended to be used as examples of good code.

Designer

There is a Scripts\pyqt5designer.exe entry point that will help fill out PYQTDESIGNERPATH from either command line arguments or a .env file. Unknown arguments are passed through to the original Qt Designer program.

Usage: pyqt5designer [OPTIONS]

Options:
  -p, --widget-path DIRECTORY     Paths to be combined with PYQTDESIGNERPATH
  --example-widget-path           Include the path for the pyqt5-tools example
                                  button (c:\users\sda\testenv\lib\site-
                                  packages\pyqt5_tools)
  --designer-help                 Pass through to get Designer's --help
  --test-exception-dialog         Raise an exception to check the exception
                                  dialog functionality.
  --qt-debug-plugins / --no-qt-debug-plugins
                                  Set QT_DEBUG_PLUGINS=1
  --help                          Show this message and exit.

If you want to use Form > View Code... from within Designer you can run Scripts\pyqt5toolsinstalluic.exe and it will copy pyuic5.exe such that Designer will use it and show you generated Python code. pyqt5 must already be installed or this script will be unable to find the original pyuic5.exe to copy.

In addition to the standard features of the official Designer plugin, this provides an exception dialog for your widget’s Python code. Otherwise Designer in Windows silently crashes on Python exceptions.

QML Plugin

The QML plugin is also included. In the future a tool may be provided to handle copying of the plugin to each directory where it is needed. For now this must be done manually.

site-packages\pyqt5_tools\Qt\bin\plugins\pyqt5qmlplugin.dll

QML Scene

Usage: pyqt5qmlscene [OPTIONS]

Options:
  -p, --qml2-import-path DIRECTORY
                                  Paths to be combined with QML2_IMPORT_PATH
  --qmlscene-help                 Pass through to get QML scene's --help
  --qt-debug-plugins / --no-qt-debug-plugins
                                  Set QT_DEBUG_PLUGINS=1
  --run-qml-example               Run the pyqt5-tools QML example
  --help                          Show this message and exit.

QML Test Runner

Usage: pyqt5qmltestrunner [OPTIONS]

Options:
  -p, --qml2-import-path DIRECTORY
                                  Paths to be combined with QML2_IMPORT_PATH
  --qmltestrunner-help            Pass through to get QML test runner's --help
  --qt-debug-plugins / --no-qt-debug-plugins
                                  Set QT_DEBUG_PLUGINS=1
  --test-qml-example              Test the pyqt5-tools QML example
  --help                          Show this message and exit.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

pyqt5_tools-5.12.3.1.6rc1-cp38-none-win_amd64.whl (67.5 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyqt5_tools-5.12.3.1.6rc1-cp38-none-win32.whl (56.7 MB view details)

Uploaded CPython 3.8 Windows x86

pyqt5_tools-5.12.3.1.6rc1-cp37-none-win_amd64.whl (67.5 MB view details)

Uploaded CPython 3.7 Windows x86-64

pyqt5_tools-5.12.3.1.6rc1-cp37-none-win32.whl (56.7 MB view details)

Uploaded CPython 3.7 Windows x86

pyqt5_tools-5.12.3.1.6rc1-cp36-none-win_amd64.whl (66.5 MB view details)

Uploaded CPython 3.6 Windows x86-64

pyqt5_tools-5.12.3.1.6rc1-cp36-none-win32.whl (56.7 MB view details)

Uploaded CPython 3.6 Windows x86

pyqt5_tools-5.12.3.1.6rc1-cp35-none-win_amd64.whl (66.5 MB view details)

Uploaded CPython 3.5 Windows x86-64

pyqt5_tools-5.12.3.1.6rc1-cp35-none-win32.whl (56.7 MB view details)

Uploaded CPython 3.5 Windows x86

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp38-none-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp38-none-win_amd64.whl
  • Upload date:
  • Size: 67.5 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp38-none-win_amd64.whl
Algorithm Hash digest
SHA256 e95d78c7acabb8b9ce4c93a2c6bb6ad6cb62dfec37d7be7e11adba92935eea9b
MD5 d36f2b0ed4b0832485f6e5137142537a
BLAKE2b-256 e847d42aee8464e12029004a58fda222e40958f7097f2d25033491b1cad1e3b4

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp38-none-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp38-none-win32.whl
  • Upload date:
  • Size: 56.7 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.8.0

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp38-none-win32.whl
Algorithm Hash digest
SHA256 fd1101c61626dc0ca519c3b6cb8d0c4de1beff65b065aa4cb944e78ac5b84d53
MD5 3174b274e470fe3f8cfa746d6617e737
BLAKE2b-256 b784b18c5b5e1ee707b71a9a0e0905f18ffae681470a18a3b1a5d22a69daaa18

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp37-none-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp37-none-win_amd64.whl
  • Upload date:
  • Size: 67.5 MB
  • Tags: CPython 3.7, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp37-none-win_amd64.whl
Algorithm Hash digest
SHA256 01065f113976bfb5f41ef418b5265ac9b47b5caff6b9f908b61c1f1c3512c06a
MD5 4c95c6589a9b45032f5819e55c65feb8
BLAKE2b-256 fc46e14848c016e1acd25a259e4e42b598bd5b88ea2fa5e06c9bb1086999b4e7

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp37-none-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp37-none-win32.whl
  • Upload date:
  • Size: 56.7 MB
  • Tags: CPython 3.7, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.7.5

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp37-none-win32.whl
Algorithm Hash digest
SHA256 6207dd8f6c29b565ad2c8f124ddfc905afa1c4b7e2ca3491619e6e7547f717a9
MD5 f9682317bb28d08aefb0fffdd2e0160c
BLAKE2b-256 c505f2d408927fb762a620d2b8b4d708bd60e98b4deec5a87565b097cc1f0222

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp36-none-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp36-none-win_amd64.whl
  • Upload date:
  • Size: 66.5 MB
  • Tags: CPython 3.6, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp36-none-win_amd64.whl
Algorithm Hash digest
SHA256 edfcdab9bb135896222fe526946d2556a05c7ae21823806e7b7219f17c809ffb
MD5 81d58caa7a3d6f99bb1948e9ac780a5e
BLAKE2b-256 e38ad14b0bdd2bed1fac946f41bcf03b284483a84730797184a0ee6a227195fd

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp36-none-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp36-none-win32.whl
  • Upload date:
  • Size: 56.7 MB
  • Tags: CPython 3.6, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.6.8

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp36-none-win32.whl
Algorithm Hash digest
SHA256 5e9dbfdcb0692137e376a274bd7f5c05c691839596e986d5ff0fc4b3787f5fdb
MD5 942544599b95b4b78bf1bd62bb95a909
BLAKE2b-256 f71c87d1ec785b61f47f8dbac41925fbedbaafbbdb5fa7e284d0153bb0e045b4

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp35-none-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp35-none-win_amd64.whl
  • Upload date:
  • Size: 66.5 MB
  • Tags: CPython 3.5, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.4

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp35-none-win_amd64.whl
Algorithm Hash digest
SHA256 5ccd6c0fde82e67ec06503f77270dabe2726d3df8f6f9b8b774a20ac7e21188b
MD5 071877ab3a052e5f844fd146c3ce1483
BLAKE2b-256 53705fa0c7e02c1c2d32cc07beab97535874e9075bdc209ef792927ff834ecf4

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.12.3.1.6rc1-cp35-none-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.12.3.1.6rc1-cp35-none-win32.whl
  • Upload date:
  • Size: 56.7 MB
  • Tags: CPython 3.5, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.5.0.1 requests/2.13.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.4

File hashes

Hashes for pyqt5_tools-5.12.3.1.6rc1-cp35-none-win32.whl
Algorithm Hash digest
SHA256 dc3bc00dd3016dc95abbd3b0fc2db446e988bdc55d62e35e3378177a63c2f537
MD5 a14f17fc1a4b3d7bb78dd97949696260
BLAKE2b-256 195c37d714e67f6e69ff503eac26279733e5f0ca208770948a5324d1679ae233

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page