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.

Homepage: https://github.com/wbsoft/parce-qt Download: https://pypi.org/project/parce-qt

Example:

from PyQt5.QtWidgets import QApplication
from PyQt5.QtGui import QTextDocument

app = QApplication([])

import parceqt
import parce.lang.xml

lexicon = parce.lang.xml.Xml.root
doc = QTextDocument()
parceqt.SyntaxHighlighter.instance(doc, lexicon)

# Now the text in the document is automatically highlighted using the
# specified root lexicon.

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.3.0.tar.gz (7.5 kB view hashes)

Uploaded Source

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