Tools to supplement the official PyQt5 wheels
Project description
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 pqyt5-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 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
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\desktop\venv64\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.
--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.
The QML plugin is also included for use with qmlscene.exe and qmltestrunner.exe.
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
Built Distributions
Hashes for pyqt5_tools-5.11.3.1.4-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f8e97b2b7a24ac44c665dddd1c6b4765281bfa9d4780fa49fad27ae5d5ec6105 |
|
MD5 | efcf34446d73a0129ed94b21ee65115d |
|
BLAKE2b-256 | 6a3598279ba706e9c3731f0f53813e9a8152ed662f2230e8af18a20d490167be |
Hashes for pyqt5_tools-5.11.3.1.4-cp37-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87008d8b4f83bee5c36e814f66ca80fb61648cbd70832f60b7fa72880e69ccb8 |
|
MD5 | 8c8d1e62e304b3239155565f8c52c247 |
|
BLAKE2b-256 | 21ff7578d6d124926ff6cd1ef13c8c095063ad4c3811f4506788a915607aee81 |
Hashes for pyqt5_tools-5.11.3.1.4-cp36-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0ac6ed66532ce6f76c18efc0a2baef31861e99eb06c8578ebf806fb66f8ff6 |
|
MD5 | dff47f02c737f84cb89760b808685960 |
|
BLAKE2b-256 | ead0d23000b331c0844d3554d7997cd9aecdbdb1d47ac55d035d2651b840bcb9 |
Hashes for pyqt5_tools-5.11.3.1.4-cp36-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88377a3b1a477dd37c0516f82a1aed55a80e39f6ee6f14f9067c0521dfbf9ae1 |
|
MD5 | cc423bf0426c22f10db09150415ddb0e |
|
BLAKE2b-256 | 031947d5cdfae74481914c0ef36aac861bae7318a225e5d4029bcf0a01e92773 |
Hashes for pyqt5_tools-5.11.3.1.4-cp35-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55d8f6b47748f166a42144153f46354fa5379fa7837af6f645f51aad257cc7f6 |
|
MD5 | 03fe002c385963314bbeab47f752f22c |
|
BLAKE2b-256 | 3822f39153d90c2630d2814872e5cd878fec164ff033dbdba2e197e6705f9f14 |
Hashes for pyqt5_tools-5.11.3.1.4-cp35-none-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e40af836caa1c04a6dd81cc88ce44afd253910c44218ae40b3ed2ee49867c79 |
|
MD5 | de094eeb8b676b0cbd615a4deff61626 |
|
BLAKE2b-256 | 2cbcbb5d1cb06e63b04d1e956474a7c39f5f20f2d6a5ddafa5fc05b80c95d2f1 |