{"id":14982699,"url":"https://github.com/yjg30737/pyqt-find-text-widget","last_synced_at":"2026-03-12T22:32:54.754Z","repository":{"id":57678949,"uuid":"432988918","full_name":"yjg30737/pyqt-find-text-widget","owner":"yjg30737","description":"PyQt widget which can be used to find text in QTextEdit/QTextBrowser","archived":false,"fork":false,"pushed_at":"2022-09-09T09:25:05.000Z","size":34379,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-29T07:11:37.753Z","etag":null,"topics":["pyqt5","pyqt5-examples","pyqt5-find-text","pyqt5-tutorial","python","python3","python37","qt","qt-examples","qt-gui","qt-tutorial","qt5","qt5-gui"],"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-11-29T09:59:07.000Z","updated_at":"2024-12-03T01:50:51.000Z","dependencies_parsed_at":"2022-09-14T11:31:42.016Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-find-text-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-find-text-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-text-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-text-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-text-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-text-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-find-text-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-text-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30446445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-12T21:31:01.033Z","status":"ssl_error","status_checked_at":"2026-03-12T21:30:43.161Z","response_time":114,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["pyqt5","pyqt5-examples","pyqt5-find-text","pyqt5-tutorial","python","python3","python37","qt","qt-examples","qt-gui","qt-tutorial","qt5","qt5-gui"],"created_at":"2024-09-24T14:05:52.864Z","updated_at":"2026-03-12T22:32:54.704Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-find-text-widget\nPyQt widget which can be used to find text in QTextEdit/QTextBrowser\n\n## Requirements\nPyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-find-text-widget`\n\n## Included Packages\n* \u003ca href=\"https://github.com/yjg30737/pyqt-svg-button.git\"\u003epyqt-svg-button\u003c/a\u003e\n\n## Feature\n* Find previous, next occurence based on text cursor's position\n    * prev shortcut: Ctrl+Shift+D\n    * next shortcut: Ctrl+D\n* Match case\n* Makes find match only complete words\n* Providing prev, next, close signals\n* Enable to set close button with `setCloseBtn(f: bool)`\n\nI'm still working with regex feature.\n\n## Signal\n* prevClicked\n* nextClicked\n* closeSignal\n\n## Usage\nCode Sample\n```python\nfrom PyQt5.QtWidgets import QMainWindow, QApplication, QGridLayout, QWidget, QTextEdit\nfrom pyqt_find_text_widget.findTextWidget import FindTextWidget\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; }') # I wrote this code because color of default selection doesn't stand out in the white textedit screen.\n\n        self.__w = FindTextWidget(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 these icons were PNG, now these are SVG! So don't worry about the difference.\n\nhttps://user-images.githubusercontent.com/55078043/147844492-53b355ff-801a-4fca-bbef-c37fb55d1418.mp4\n\nMatch case \u0026 complete word only example\n\nhttps://user-images.githubusercontent.com/55078043/147844473-76474b51-2b2d-4680-82e4-8a67ab263db3.mp4\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-find-text-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-find-text-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-find-text-widget/lists"}