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: https://github.com/wbsoft/livelex-qt Download: https://pypi.org/project/livelex-qt

Example:

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.

Source Distribution

livelex-qt-0.3.0.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file livelex-qt-0.3.0.tar.gz.

File metadata

  • Download URL: livelex-qt-0.3.0.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for livelex-qt-0.3.0.tar.gz
Algorithm Hash digest
SHA256 590b530071720328450097a62949565fe7356745b570911f002589e8fc9b7a11
MD5 e45de43723ee086b9d77f3565dbdb46c
BLAKE2b-256 64503e3384ae7a70ca05b1decc38d4fdb3581872db0bd3ded9e03c463f683d78

See more details on using hashes here.

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