{"id":17603074,"url":"https://github.com/yjg30737/pyqt-find-path-widget","last_synced_at":"2026-02-12T01:34:50.938Z","repository":{"id":48520562,"uuid":"440730713","full_name":"yjg30737/pyqt-find-path-widget","owner":"yjg30737","description":"PyQt find path widget (QLabel - QLineEdit - QPushButton)","archived":false,"fork":false,"pushed_at":"2022-07-24T08:28:47.000Z","size":29,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T23:22:44.502Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt-tutorial","pyqt5","pyqt5-examples","pyqt5-tutorial","python","python3","python37","qlineedit","qpushbutton","qt"],"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-22T04:21:23.000Z","updated_at":"2024-06-04T12:46:57.000Z","dependencies_parsed_at":"2022-09-26T21:31:21.640Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-find-path-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-find-path-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-path-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-path-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-path-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-path-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-find-path-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-find-path-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29352848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T01:03:07.613Z","status":"ssl_error","status_checked_at":"2026-02-12T01:00:51.346Z","response_time":97,"last_error":"SSL_read: 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":["pyqt","pyqt-examples","pyqt-tutorial","pyqt5","pyqt5-examples","pyqt5-tutorial","python","python3","python37","qlineedit","qpushbutton","qt"],"created_at":"2024-10-22T13:39:02.650Z","updated_at":"2026-02-12T01:34:50.899Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-find-path-widget\nPyQt find path widget (QLabel - QLineEdit - QPushButton)\n\n## Requirements\nPyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-find-path-widget`\n\n## Included Packages\n* \u003ca href=\"https://github.com/yjg30737/pyqt-resource-helper.git\"\u003epyqt-resource-helper\u003c/a\u003e\n\n## Feature\n* `findClicked` Signal will be emitted when find button clicks\n* `added` Signal will be emitted when file's name is set in the QLineEdit\n* \"Open path\" feature in context menu\n* Showing tooltip to show full path when QLineEdit is too short to do so\n* QLineEdit is set to read only in order to prevent malfunction from wrong input.\n* Being able to use `setLabel(label: str)` method to set the label. Label doesn't exist as default.\n\n## Example\n```python\nfrom PyQt5.QtWidgets import QApplication, QWidget, QVBoxLayout, QTextBrowser\nfrom pyqt_find_path_widget import FindPathWidget\n\n\nclass FindPathWidgetExample(QWidget):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        findPathWidget = FindPathWidget()\n        findPathWidget.setExtOfFiles('Text Files (*.txt)') # Restrict file's extension to find\n\n        findPathWidget.findClicked.connect(self.__findClicked) # Signal will be emitted when find button clicks\n        findPathWidget.added.connect(self.__added) # Signal will be emitted when file's name is set in the QLineEdit\n\n        self.__textBrowser = QTextBrowser() # Widget to show text file's content\n        self.__textBrowser.setStyleSheet('QTextBrowser '\n                                          '{'\n                                          'color: #DDD;'\n                                          'background-color: #444;'\n                                          'border: 1px solid #222;'\n                                          '}') # To match the style with FindPathWidget\n\n        self.setStyleSheet('QWidget { background-color: #666; }') # To match the style with FindPathWidget\n\n        lay = QVBoxLayout()\n        lay.addWidget(findPathWidget)\n        lay.addWidget(self.__textBrowser)\n\n        self.setLayout(lay)\n\n    def __findClicked(self):\n        print('find clicked')\n\n    def __added(self, filename):\n        f = open(filename, 'r')\n        text = f.read()\n        f.close()\n        self.__textBrowser.setText(text)\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    searchMultiple = FindPathWidgetExample()\n    searchMultiple.show()\n    app.exec_()\n```\n\nResult\n\n![image](https://user-images.githubusercontent.com/55078043/147036534-e8624abd-c5dc-4838-b6bc-4dc961499c43.png)\n\nMouse cursor should be next to that tooltip. Windows screenshot feature doesn't show the mouse cursor.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-find-path-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-find-path-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-find-path-widget/lists"}