Skip to main content

The parceqt Python module

Project description

Small Python library to use parce with Qt’s QTextDocument.

This module depends on parce (https://parce.info/)

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)

Now the text in the document is automatically highlighted using the specified root lexicon; the highlighting is updated as the user modifies the text.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

parceqt-0.9.0.tar.gz (35.3 kB view details)

Uploaded Source

File details

Details for the file parceqt-0.9.0.tar.gz.

File metadata

  • Download URL: parceqt-0.9.0.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for parceqt-0.9.0.tar.gz
Algorithm Hash digest
SHA256 470aaf4e2f5b40e46e70b79a556c40b374d0c4653710ef63333ae4eef66467f7
MD5 578b2ad3c6cb9144e3da8b9c00149a2e
BLAKE2b-256 69c029f7b90767a71b375d0ed166a9918417bd668667b696d4fefbb87523ccfa

See more details on using hashes here.

Supported by

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