{"id":15021605,"url":"https://github.com/yjg30737/pyqt-find-replace-text-widget","last_synced_at":"2025-09-08T05:32:37.159Z","repository":{"id":57678945,"uuid":"433678957","full_name":"yjg30737/pyqt-find-replace-text-widget","owner":"yjg30737","description":"PyQt widget which can find and replace text in the QTextEdit/QTextBrowser","archived":false,"fork":false,"pushed_at":"2022-08-27T07:10:44.000Z","size":75,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-20T21:56:30.128Z","etag":null,"topics":["py37","pyqt","pyqt5","pyqt5-desktop-application","pyqt5-examples","pyqt5-find-text","pyqt5-gui","pyqt5-replace-text","python","python3","qt","qt-example","qt-examples","qt-gui","qt5","qt5-gui","qtextbrowser","qtextedit","replace-text"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yjg30737.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-01T04:13:04.000Z","updated_at":"2024-12-03T01:50:12.000Z","dependencies_parsed_at":"2022-09-10T22:02:50.939Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-find-replace-text-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-find-replace-text-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-replace-text-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-replace-text-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-replace-text-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-replace-text-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-find-replace-text-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-replace-text-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274136482,"owners_count":25228385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["py37","pyqt","pyqt5","pyqt5-desktop-application","pyqt5-examples","pyqt5-find-text","pyqt5-gui","pyqt5-replace-text","python","python3","qt","qt-example","qt-examples","qt-gui","qt5","qt5-gui","qtextbrowser","qtextedit","replace-text"],"created_at":"2024-09-24T19:56:46.709Z","updated_at":"2025-09-08T05:32:36.856Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-find-replace-text-widget\n\nPyQt widget which can find and replace text in the QTextEdit/QTextBrowser\n\n## Class Overview\n* FindReplaceTextWidget\n* ReplaceTextWidget (This module is supposed to be submodule of FindReplaceTextWidget)\n\n## Requirements\n* PyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-find-replace-text-widget`\n\n## Included package\n* \u003ca href=\"https://github.com/yjg30737/pyqt-find-text-widget.git\"\u003epyqt-find-text-widget\u003c/a\u003e\n\n## Example\n\nI show you my full code sample. Set up this package, copy and paste this code to your IDE and run.\n\n```python\nfrom PyQt5.QtWidgets import QMainWindow, QApplication, QGridLayout, QWidget, QTextEdit\nfrom pyqt_find_replace_text_widget.findReplaceTextWidget import FindReplaceTextWidget\n\n\nclass MainWindow(QMainWindow):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        self.__te = QTextEdit()\n        self.__te.setStyleSheet('QTextEdit { selection-background-color: lightblue; }')\n\n        self.__w = FindReplaceTextWidget(self.__te)\n\n        lay = QGridLayout()\n        lay.addWidget(self.__w)\n        lay.addWidget(self.__te)\n\n        mainWidget = QWidget()\n        mainWidget.setLayout(lay)\n\n        self.setCentralWidget(mainWidget)\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    mainWindow = MainWindow()\n    mainWindow.show()\n    sys.exit(app.exec_())\n```\n\nResult\n\nNote: Button icons in preview are obsolete. Back then button icons were PNG, but now these are brand-new good looking SVG!\n\nhttps://user-images.githubusercontent.com/55078043/146636169-eccd62b4-7964-40c1-a6c6-4fc813778a1e.mp4\n\n## Note\nThere is exclude button but i don't add feature on it. I will add proper feature on that one.. or \u003cb\u003esomeone please do this instead of me, so busy..\u003c/b\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-find-replace-text-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-find-replace-text-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-find-replace-text-widget/lists"}