livelex-qt
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.
Metadata
Release files for livelex-qt 0.3.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 | |
|---|---|---|---|
| livelex-qt-0.3.0.tar.gz | 7.9 kB | Details |
Release files / livelex-qt-0.3.0.tar.gz
| Download URL | livelex-qt-0.3.0.tar.gz |
|---|---|
| Size | 7.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
590b530071720328450097a62949565fe7356745b570911f002589e8fc9b7a11
|
|
BLAKE2b-256 checksum How to use checksums |
64503e3384ae7a70ca05b1decc38d4fdb3581872db0bd3ded9e03c463f683d78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.6
|