Skip to main content

The livelexqt Python module

Project description

Small Python library to use livelex with Qt’s QTextDocument

This module depends on livelex.

Homepage: Download:


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

app = QApplication([])

import livelexqt
import livelex.lang.xml

lexicon = livelex.lang.xml.Xml.root
doc = QTextDocument()
livelexqt.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.

Files for livelex-qt, version 0.3.0
Filename, size File type Python version Upload date Hashes
Filename, size livelex-qt-0.3.0.tar.gz (7.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page