Small Python library to use parce with Qt’s QTextDocument.
This module depends on parce (https://parce.info/) and PyQt(https://riverbankcomputing.com/software/pyqt)
Example:
from PyQt5.QtWidgets import QApplication, QTextEdit
from PyQt5.QtGui import QTextDocument
app = QApplication([])
doc = QTextDocument()
e = QTextEdit()
e.setDocument(doc)
e.resize(600, 400)
e.show()
import parceqt
from parce.lang.xml import Xml
parceqt.set_root_lexicon(doc, Xml.root)
parceqt.highlight(doc)
parceqt.adjust_widget(e) # adjust widgets font and base colors
Now the text in the document is automatically highlighted using the specified root lexicon; the highlighting is updated as the user modifies the text.
Metadata
Release files for parceqt 0.33.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 |
|---|---|---|---|---|
| parceqt-0.33.0.tar.gz | 41.6 kB | Without provenance | Details for parceqt-0.33.0.tar.gz |
Release files / parceqt-0.33.0.tar.gz
| Download URL | parceqt-0.33.0.tar.gz |
|---|---|
| Size | 41.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c6a66119576daf472b4c99d48e5ced089efda92443418c9a5840663490ca51b
|
|
BLAKE2b-256 checksum How to use checksums |
bf3fa7713c67144f3fb7a3cc9ce9d32b065aa3da66fd2d9b2b17ab070b91e412
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 colorama/0.4.4 importlib-metadata/4.6.4 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.25.1 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.6
|
Security for parceqt 0.33.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.