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.14.2.1.7b2-cp38-cp38-win_amd64.whl (57.3 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyqt5_tools-5.14.2.1.7b2-cp37-cp37m-win_amd64.whl (57.3 MB view details)

Uploaded CPython 3.7m Windows x86-64

pyqt5_tools-5.14.2.1.7b2-cp36-cp36m-win_amd64.whl (57.3 MB view details)

Uploaded CPython 3.6m Windows x86-64

pyqt5_tools-5.14.2.1.7b2-cp35-cp35m-win_amd64.whl (57.3 MB view details)

Uploaded CPython 3.5m Windows x86-64

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7b2-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 57.3 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 7d24b88b515dafee100219f573b39662a96c31e3f6bdad75e3d34fe9b42f69e2
MD5 e77d4c831331b89e8583afad064079cf
BLAKE2b-256 75aef7a68e9d8a7fccef402cc31d7722b41d4b5f0eed9c9f4919f10b9472dc1d

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7135805cfc4c1e13323f2df39a917626572ef3f391abcd472745c9aebffe7005
MD5 3f5008b6efbc45c435fc1d1a9c23fbf1
BLAKE2b-256 d9ec8db8560b7cf4547c780ad321a1b6fa082d4dd5235cd765a6465163316368

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7b2-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 57.3 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 65b82ce0d78583c8d6ec3bf00d9c39beadda984362aac18df3b4552d86c72c02
MD5 801d21e108b78a1940727c47bd6778ad
BLAKE2b-256 4b403551598cbbccbf054f12828857930522db17fd2d5469d8bde3a78842531c

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 047a18117e232cdfab7bf6edeb2060f89176fdd506c1ebfd0ecbb1eab8bbcb15
MD5 799b884c61dabdca6d790c507d5454db
BLAKE2b-256 11912658cbba26ef53206f109fe1e88a47edbc3140f5e50b1f922837da0ee1d6

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7b2-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 57.3 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 039081e412abcad2969032478ce1e4ff0f85b05b4c2c01d9d0e51c01c7b981c1
MD5 b52312f4f3b0a57dbaa177b987ed45ac
BLAKE2b-256 a19ec882b259f4e9daa553013fe79edac540da6d7a86900fb7ef6cb0161bb28b

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4173077eab086efcb91572d11fcb73709649c12842877142634c9321e625f3ac
MD5 49665bbcf4c6e02a8d6c1006632c4581
BLAKE2b-256 dc78c21be9002d1a7ff9b94f384e73749ab41a6277db349a41b020a48e8460fa

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7b2-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 57.3 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.2

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b2486fc528499b88abfdff9396bb88b2b0dd927e233ab0de0c4c5911be645a89
MD5 af645b42205443d9960ee65b6a24b3c0
BLAKE2b-256 8ab9b514860f54a9a9f1adaad925c28f019b0c98ac1651312d18f74a40437660

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.2.1.7b2-cp35-cp35m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7b2-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 d475c24871660bbf6f3d10ec18706c3b22ba2cc84cc924e2180f55f2a7208920
MD5 3c4d9d8cc0ea6f4bb6166d681e232a97
BLAKE2b-256 7ebde9870c99f1ee2922725813f09e4f1ae982022443b6a6b90c19927639844a

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