Name | parceqt JSON |
Version |
0.33.0
JSON |
| download |
home_page | https://github.com/wbsoft/parceqt |
Summary | The parceqt Python module |
upload_time | 2023-05-28 13:06:53 |
maintainer | Wilbert Berendsen |
docs_url | None |
author | |
requires_python | |
license | GPL |
keywords |
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
parceqt
=======
Small Python library to use parce with Qt's QTextDocument.
This module depends on parce (https://parce.info/) and PyQt(https://riverbankcomputing.com/software/pyqt)
| Homepage: https://github.com/wbsoft/parceqt
| Download: https://pypi.org/project/parceqt
| Documentation: https://parce.info/parceqt
Example:
.. code:: python
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)
parceqt.adjust_widget(e) # adjust widgets font and base colors
Now the text in the document is automatically highlighted using the specified
root lexicon; the highlighting is updated as the user modifies the text.
Raw data
{
"_id": null,
"home_page": "https://github.com/wbsoft/parceqt",
"name": "parceqt",
"maintainer": "Wilbert Berendsen",
"docs_url": null,
"requires_python": "",
"maintainer_email": "info@wilbertberendsen.nl",
"keywords": "",
"author": "",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/bf/3f/a7713c67144f3fb7a3cc9ce9d32b065aa3da66fd2d9b2b17ab070b91e412/parceqt-0.33.0.tar.gz",
"platform": null,
"description": "parceqt\n=======\n\nSmall Python library to use parce with Qt's QTextDocument.\n\nThis module depends on parce (https://parce.info/) and PyQt(https://riverbankcomputing.com/software/pyqt)\n\n| Homepage: https://github.com/wbsoft/parceqt\n| Download: https://pypi.org/project/parceqt\n| Documentation: https://parce.info/parceqt\n\nExample:\n\n.. code:: python\n\n from PyQt5.QtWidgets import QApplication, QTextEdit\n from PyQt5.QtGui import QTextDocument\n\n app = QApplication([])\n doc = QTextDocument()\n e = QTextEdit()\n e.setDocument(doc)\n e.resize(600, 400)\n e.show()\n\n import parceqt\n from parce.lang.xml import Xml\n\n parceqt.set_root_lexicon(doc, Xml.root)\n parceqt.highlight(doc)\n parceqt.adjust_widget(e) # adjust widgets font and base colors\n\nNow the text in the document is automatically highlighted using the specified\nroot lexicon; the highlighting is updated as the user modifies the text.\n\n\n\n",
"bugtrack_url": null,
"license": "GPL",
"summary": "The parceqt Python module",
"version": "0.33.0",
"project_urls": {
"Homepage": "https://github.com/wbsoft/parceqt"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "bf3fa7713c67144f3fb7a3cc9ce9d32b065aa3da66fd2d9b2b17ab070b91e412",
"md5": "6cc1c7f5072cc92f9176ec8574d6d922",
"sha256": "6c6a66119576daf472b4c99d48e5ced089efda92443418c9a5840663490ca51b"
},
"downloads": -1,
"filename": "parceqt-0.33.0.tar.gz",
"has_sig": false,
"md5_digest": "6cc1c7f5072cc92f9176ec8574d6d922",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 41649,
"upload_time": "2023-05-28T13:06:53",
"upload_time_iso_8601": "2023-05-28T13:06:53.336132Z",
"url": "https://files.pythonhosted.org/packages/bf/3f/a7713c67144f3fb7a3cc9ce9d32b065aa3da66fd2d9b2b17ab070b91e412/parceqt-0.33.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-28 13:06:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "wbsoft",
"github_project": "parceqt",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "parceqt"
}