pyqt-find-replace-text-widget
PyQt widget which can find and replace text in the QTextEdit/QTextBrowser
Class Overview
-
FindReplaceTextWidget
-
ReplaceTextWidget (This module is supposed to be submodule of FindReplaceTextWidget)
Requirements
- PyQt5 >= 5.8
Setup
python -m pip install pyqt-find-replace-text-widget
Included package
Example
I show you my full code sample. Set up this package, copy and paste this code to your IDE and run.
from PyQt5.QtWidgets import QMainWindow, QApplication, QGridLayout, QWidget, QTextEdit
from pyqt_find_replace_text_widget.findReplaceTextWidget import FindReplaceTextWidget
class MainWindow(QMainWindow):
def __init__(self):
super().__init__()
self.__initUi()
def __initUi(self):
self.__te = QTextEdit()
self.__te.setStyleSheet('QTextEdit { selection-background-color: lightblue; }')
self.__w = FindReplaceTextWidget(self.__te)
lay = QGridLayout()
lay.addWidget(self.__w)
lay.addWidget(self.__te)
mainWidget = QWidget()
mainWidget.setLayout(lay)
self.setCentralWidget(mainWidget)
if __name__ == "__main__":
import sys
app = QApplication(sys.argv)
mainWindow = MainWindow()
mainWindow.show()
sys.exit(app.exec_())
Result
Note: Button icons in preview are obsolete. Back then button icons were PNG, but now these are brand-new good looking SVG!
Note
There is exclude button but i don't add feature on it. I will add proper feature on that one.. or someone please do this instead of me, so busy..
Metadata
Release files for pyqt-find-replace-text-widget 0.0.14
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyqt-find-replace-text-widget-0.0.14.tar.gz | 9.9 kB | Without provenance | Details for pyqt-find-replace-text-widget-0.0.14.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyqt_find_replace_text_widget-0.0.14-py3-none-any.whl | Python 3 | none | any | Details for pyqt_find_replace_text_widget-0.0.14-py3-none-any.whl |
Total release size: 20.8 kB
Release files / pyqt-find-replace-text-widget-0.0.14.tar.gz
| Download URL | pyqt-find-replace-text-widget-0.0.14.tar.gz |
|---|---|
| Size | 9.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd457767f24ff26e0ad838049b1ef1612850437369fad1ca81e1af9406248332
|
|
BLAKE2b-256 checksum How to use checksums |
268b8d9611a80f9248d4fbecd3dcbc9cc24831325ee213e9e9e742a09975868f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Release files / pyqt_find_replace_text_widget-0.0.14-py3-none-any.whl
| Download URL | pyqt_find_replace_text_widget-0.0.14-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
29096dba569292113d222420f92b5a15d58ed403850fd7ed9104302d42d07462
|
|
BLAKE2b-256 checksum How to use checksums |
4a12c4f712afc9fcca7766ac1072a45203a5af471d5adf675fb8596223dd76bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/0.0.0 CPython/3.7.6
|
Security for pyqt-find-replace-text-widget 0.0.14
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.