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.

Special Thanks

MacStadium

Thanks to MacStadium for providing me with a macOS system to develop and test out the final pyqt5-tools platform.

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.0.1.7.1-cp38-cp38-win_amd64.whl (57.7 MB view details)

Uploaded CPython 3.8 Windows x86-64

pyqt5_tools-5.14.0.1.7.1-cp37-cp37m-win_amd64.whl (57.7 MB view details)

Uploaded CPython 3.7m Windows x86-64

pyqt5_tools-5.14.0.1.7.1-cp36-cp36m-win_amd64.whl (57.7 MB view details)

Uploaded CPython 3.6m Windows x86-64

pyqt5_tools-5.14.0.1.7.1-cp35-cp35m-win_amd64.whl (57.7 MB view details)

Uploaded CPython 3.5m Windows x86-64

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.0.1.7.1-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 57.7 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 711634054e926d58e30c9636bad5697b314cb2aa025c9fdba7f8d2d37f217ac0
MD5 8728a9e7d1782e9c584463dceff29ae8
BLAKE2b-256 5f8421edfa88154adf230c88d094dee048652cf3065c67430c9c7b4e60a0f16e

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp38-cp38-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 2da120677b55d5588fe786716b5833f656c3570d17d27e09d512451d43618868
MD5 7be2d60ec1ea94c4d5e93b70b9922638
BLAKE2b-256 5a5b50516b9a3324a413c6fbd8c44e4109dbadbcd2ec3b4b64c564ba565ae5cf

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.0.1.7.1-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 57.7 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 1161d69bcf293f07d16ea897ebf63468dfa1feb0cbb8d0be4c47e15cdccf6b80
MD5 206bf47290631905f6c38ebf98370070
BLAKE2b-256 718a4be5a2db50a982f52a7a592d7de7485df8fd7a2bbd75b324726a672e2f5d

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp37-cp37m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 938143528825b0d28011f30812d610cbba45763c11ec1080c7a85087f0984b17
MD5 ddc8a4c5c1845b4e9c774a025e82065a
BLAKE2b-256 263f9776d54694942acbd4af57e32d3711046aa7b970ae1d2842d438db443b96

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp36-cp36m-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.0.1.7.1-cp36-cp36m-win_amd64.whl
  • Upload date:
  • Size: 57.7 MB
  • Tags: CPython 3.6m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 4bd75c8044464e570306c9ea72d8a2360c93aaa73c5b540ed77e05a97d9ca5ce
MD5 01cac7583f134511ee7903f4717d7969
BLAKE2b-256 b0438e8ea0dd33441e7bba60a9fae386b14a47fdb87228eb5e8f4c9f1b7f4f51

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp36-cp36m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 4d72835cb2fe9f7a982697118fe86dd4a3b78653e410a2888b79980c03d665dd
MD5 5f893129a14a93ffc85026b218c0236d
BLAKE2b-256 22ed0645ea99c45bcc00c0da360b56200566e6360f6f3dfa79610df38c511f13

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp35-cp35m-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.0.1.7.1-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 57.7 MB
  • Tags: CPython 3.5m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.3.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 b1454cc36551038b78586ece157b236ae601b4c1db1e33c9962a86bef071da0c
MD5 aca2a4129f23f4794a56429b995a4b57
BLAKE2b-256 b6f0e713ed2a2e75d8d06ad5b323ada3d4454252c8bfb508d291b98c37e72fc7

See more details on using hashes here.

Provenance

File details

Details for the file pyqt5_tools-5.14.0.1.7.1-cp35-cp35m-manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pyqt5_tools-5.14.0.1.7.1-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6b584e0fc21e6834cbe4cccb5989f5e35c67779b7c1fce56011b114058b84f47
MD5 00b90d000d824aeb688c5b58bb7cfec3
BLAKE2b-256 44e969093be84b72ba3b7700e6de74c8c8d20005953a6746da7e571a41a806b6

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