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

Uploaded CPython 3.8 Windows x86-64

pyqt5_tools-5.15.1.1.7.5-cp38-cp38-win32.whl (48.1 MB view details)

Uploaded CPython 3.8 Windows x86

pyqt5_tools-5.15.1.1.7.5-cp37-cp37m-win_amd64.whl (57.5 MB view details)

Uploaded CPython 3.7m Windows x86-64

pyqt5_tools-5.15.1.1.7.5-cp36-cp36m-win32.whl (48.1 MB view details)

Uploaded CPython 3.6m Windows x86

pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win_amd64.whl (57.5 MB view details)

Uploaded CPython 3.5m Windows x86-64

pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win32.whl (48.1 MB view details)

Uploaded CPython 3.5m Windows x86

File details

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

File metadata

  • Download URL: pyqt5_tools-5.15.1.1.7.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 57.5 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 23576b787639f0d68e0204fa23f8c0362e51c98cdb67166d9696fe5e79880c39
MD5 3e91ce2647c229b6496f448361b07395
BLAKE2b-256 6ab6cdddbb19282054c6f30e92644f15da9b7194c73914b2288b23929efcd13c

See more details on using hashes here.

File details

Details for the file pyqt5_tools-5.15.1.1.7.5-cp38-cp38-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.15.1.1.7.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 48.1 MB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 f95b93ffcd6502973b1a45cbadb72b9855b5e7cacfc60c3992337236bd86b775
MD5 1dcc31482362f88ed44a8d158df10d0a
BLAKE2b-256 cadb581977798926fa7a8ee2c74255eb787d000a8c74971eb36aa8636c4edb35

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqt5_tools-5.15.1.1.7.5-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 57.5 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 4f6e046dc3913918991cd70ded749d0acedf58c3252566eb4e29bfdb29349bd6
MD5 50384f4f6ccba5377cfff3656b62af8a
BLAKE2b-256 614212bb20905856d48e0455021ade84e5e3f7a155a2c8a88791b1f02a406859

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ee994b8a0bcef119248eebfaaad92f8b292476732aea0c951fa699188295d0fe
MD5 17397f30f042a6678ffc7da3d0deeac1
BLAKE2b-256 94b558ba0cd74f8eeb05665725a40f048960899ad023bf65c007924f7684cf02

See more details on using hashes here.

File details

Details for the file pyqt5_tools-5.15.1.1.7.5-cp36-cp36m-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.15.1.1.7.5-cp36-cp36m-win32.whl
  • Upload date:
  • Size: 48.1 MB
  • Tags: CPython 3.6m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp36-cp36m-win32.whl
Algorithm Hash digest
SHA256 36d0180165c08d80d1547b0b8e27a32f8729ba1bf1b7c3f8168554631eced012
MD5 4e7d8340444284d156c0334f35ac24ca
BLAKE2b-256 c9d09e43a9bcc9a0d0f26eee745d3492453c98dfcde1f4b33194ae2a3ab82e88

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win_amd64.whl
  • Upload date:
  • Size: 57.5 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/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 76cbbe7e5be6a48f2391548f735c4aec2c260dd9d5add4fc896f6144d6a5cf60
MD5 28c7ede5b07abf14acd5511e972e6780
BLAKE2b-256 49a18ca6e808df0529d814d9048cf70009ddddcfb549248467c619251e51e035

See more details on using hashes here.

File details

Details for the file pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win32.whl.

File metadata

  • Download URL: pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win32.whl
  • Upload date:
  • Size: 48.1 MB
  • Tags: CPython 3.5m, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.6

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-win32.whl
Algorithm Hash digest
SHA256 2335835ed952f8cb8d69a243ae2b33dcf7bba6d89ce2c66c96a970fc1fcd85ec
MD5 a339c60f22cf24b697c04d4d80e58a91
BLAKE2b-256 b4b71b9be0de46c06b1226fbc90104b428023f39748dc6acd77534ffa309a8e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pyqt5_tools-5.15.1.1.7.5-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ded0151f93b6d6ce320a6de5dbf6166633f4f4c3fc6d77b8ae9589cf165d182c
MD5 cf26a0f05d7da7dae9f26706e37aeee2
BLAKE2b-256 3a2a688efdc58e033b1f64ddf07e0ad941e43ae57020a05c7fc6a98dc327d50c

See more details on using hashes here.

Supported by

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