PyQtEnumConverter
PyQt6 changes the usage of enums. Here are some examples:
#PyQt5
QLayout.SetFixedSize
#PyQt6
QLayout.SizeConstraint.SetFixedSize
#PyQt5
Qt.IgnoreAspectRatio
#PyQt6
Qt.AspectRatioMode.IgnoreAspectRatio
To change all of this is a lot of work when you port a big project from PyQt5 to PyQt6. To help porting I had written this little script that does the work for you. It works with files and directories, which are parsed recursive.
Usage: PyQtEnumConverter <file/directory>
This is a little script that I had written in a few hours. It may not work perfect and there's no warranty that it will not damage your project. It uses simple text replacement, so as imports are not supported. Please make a backup of your project before using it.
Metadata
Release files for PyQtEnumConverter 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| PyQtEnumConverter-1.0.tar.gz | 3.1 kB | Without provenance | Details for PyQtEnumConverter-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PyQtEnumConverter-1.0-py3-none-any.whl | Python 3 | none | any | Details for PyQtEnumConverter-1.0-py3-none-any.whl |
Total release size: 6.4 kB
Release files / PyQtEnumConverter-1.0.tar.gz
| Download URL | PyQtEnumConverter-1.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0697da5d18ee20c7e38905dfc3129702ac9c54de520e2a26d92e5fa028fc21d1
|
|
BLAKE2b-256 checksum How to use checksums |
96c578d3f66962610e83069195ef502a508ee26ba8f7bd8bfdcb8cb7b1859ab9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Release files / PyQtEnumConverter-1.0-py3-none-any.whl
| Download URL | PyQtEnumConverter-1.0-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
65c3cdc9de2f1caf4e976209d8da47e85bb87ecaa7f2b6c8a553ebaed93b977f
|
|
BLAKE2b-256 checksum How to use checksums |
92824b55a60525b4f5c369f63a50fa36659ec892c9914aa107d48b1c994dbf51
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.1.0 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.9.2
|
Security for PyQtEnumConverter 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.