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

Uploaded CPython 3.8 Windows x86-64

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

Uploaded CPython 3.7m Windows x86-64

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

Uploaded CPython 3.6m Windows x86-64

pyqt5_tools-5.14.2.1.7.2-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.7.2-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7.2-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 ce3e081f5090b7f7842747782c045a5759523e0623d0a48f4e08cdbefaacf80e
MD5 8884a2566fdf13e6b1062c8fa78c76be
BLAKE2b-256 6f7dc5ffa27a9dac40c75f06a20432eb079964e5b8c8cb0d4c1057d7dcba9624

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp38-cp38-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 66bbe0fb037c8e24527d6f259f04e26325cb7c22ab50a3ba70d9b892fc03d2d9
MD5 f582e0e53b7d4588b0e6565364d30216
BLAKE2b-256 dd6604eef92e709334e3e2eb1b75f6291c04daa8d546d32851fd056924714b0e

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7.2-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 cc4e1d9545ba64bf12386be43cdd670dc8e105ff1fe3e9d901dba9b81daa55a5
MD5 5bb13fb554f6daad68a97f5b0bac4c48
BLAKE2b-256 6c797ff482052d7b88b41659d510064fa472545e244ca9eec80465374b613e5e

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8dfc96381bc46d183b7799d78255461572bad0236efafb565e1b23898fb23dd2
MD5 2b12a37a2a77e4ff108f2e5ab38a75ed
BLAKE2b-256 6a6df5621cdb9693305cf12fa04b27ccc34c4a1ddf4c61911450f1e267c88d66

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7.2-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp36-cp36m-win_amd64.whl
Algorithm Hash digest
SHA256 15be3a5c4908d29b2efb02aeb21b9fcb8f0320781f6aa26168b1d06e1fe4915e
MD5 8d54cdec890268a125fdad3e2e8b8610
BLAKE2b-256 06a34db7492fdc9cef57d4694dbc10695e7a4007ddb901b4f0a8398185c1dea6

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 6d23303b1a091be1899593a688b837e7da5d40ea874b49e6d94f07283831ab81
MD5 184867bc2707924a818a6bb5401b85f9
BLAKE2b-256 3d3d1750a6071df9fa1f786f8497974a06bc8b2d247553e29d17cbde086fee4a

See more details on using hashes here.

Provenance

File details

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

File metadata

  • Download URL: pyqt5_tools-5.14.2.1.7.2-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.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.8.5

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp35-cp35m-win_amd64.whl
Algorithm Hash digest
SHA256 56a3fb3c817b50538b08d4a5407cd5b7b98ba07584393c7c81ecb7e4e32de91e
MD5 563cda33654eb327b5904019b78efce3
BLAKE2b-256 63508a13ea9d564ca91efe379486bc7dcbc0a18d447b1dedd6f3b56090fc9b73

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for pyqt5_tools-5.14.2.1.7.2-cp35-cp35m-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b905530e03cf555d6f71668b6383501119dc124279a353b28c80b92692336715
MD5 95ff29539e9ca0905d32e9dd56e380ce
BLAKE2b-256 a1dad8234abf36ad82c5f1df94d9dda997705cfd2430d16996a6c3d52d00fd0e

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