English | 简体中文
CodeEditor
Syntax highlighting code editor. Easy to config.
A python editor package, based on QScintilla. support:
- find and replace dialog
- setting panel for config dialog
- easy config api
usage
Create editor, open file or find text:
from CodeEditor import editor
edt = editor() # create editor object
edt.load("file.c") # file.c will be opened, and highlighted under c syntax
edt.save("file.c") # file will be saved.
edt.setText("abc") # content in editor will be replace by "abc"
edt.clear() # content in editor will be cleaned.
edt.find() # show find dialog
edt.replace() # show replace dialog
find and replace dialog will dispaly as follow:
create setting panel:
from CodeEditor import editor
edt = editor() # create editor
panel = edt.settings.settingPanel() # create setting panel
panel.apply() # apply all change options in setting panel
panel.cancel() # cancel all change options and refresh setting panel
settingPanel is a Scrollable Qt Widget, it will display as follow:
config editor:
from CodeEditor import editor
from PyQt5.QtCore import Qt
edt = editor()
# config method
edt.setLanguage("CSS")
edt.setFontSize(12)
edt.setBackgroundColor(Qt.blue)
# anothor config method
edt.settings.configuate(language="CSS", fontSize=12, backgroundColor="blue",
color="#FF0000", edgeMode="EdgeLine")
get config of editor:
from CodeEditor import editor
edt = editor()
color = edt.color() # color=QColor("#FF0000")
color = edt.settings.get("color") # color="#FF0000"
Metadata
Release files for CodeEditor 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| CodeEditor-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for CodeEditor-1.1.0-py3-none-any.whl |
Release files / CodeEditor-1.1.0-py3-none-any.whl
| Download URL | CodeEditor-1.1.0-py3-none-any.whl |
|---|---|
| Size | 40.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9e52aaf4dc02628460eefe67d90059dcc1518b23cb862fc357168eee766dd93
|
|
BLAKE2b-256 checksum How to use checksums |
9b16415aa9103c12fc4c25a3962a4087fef258234ff3e7beaf8bc1fd9a98e18f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.1 requests-toolbelt/0.9.1 tqdm/4.39.0 CPython/3.8.0
|
Security for CodeEditor 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.