{"id":17603012,"url":"https://github.com/yjg30737/pyqt-hbounding-box","last_synced_at":"2025-05-07T11:13:58.305Z","repository":{"id":62591634,"uuid":"441055901","full_name":"yjg30737/pyqt-hbounding-box","owner":"yjg30737","description":"PyQt QGraphicsView with bounding box. User can move vertical border of the box horizontally.","archived":false,"fork":false,"pushed_at":"2022-05-17T02:37:47.000Z","size":28,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-11T09:28:58.812Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt-qgraphicsview","pyqt5","pyqt5-examples","pyqt5-framework","pyqt5-gui","pyqt5-qgraphicsview","pyqt5-tools","pyqt5-tutorial","python","python3","python37","qgraphicsview","qt","selection-box"],"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-23T03:56:55.000Z","updated_at":"2022-11-07T08:51:29.000Z","dependencies_parsed_at":"2022-11-04T07:15:38.162Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-hbounding-box","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-hbounding-box","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-hbounding-box/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-hbounding-box/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-hbounding-box/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-hbounding-box/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232282810,"owners_count":18499325,"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","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-qgraphicsview","pyqt5","pyqt5-examples","pyqt5-framework","pyqt5-gui","pyqt5-qgraphicsview","pyqt5-tools","pyqt5-tutorial","python","python3","python37","qgraphicsview","qt","selection-box"],"created_at":"2024-10-22T13:37:12.133Z","updated_at":"2025-01-03T02:50:50.678Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-hbounding-box\nPyQt QGraphicsView with bounding box. User can move vertical border of the box horizontally.\n\n## Requirements\nPyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-hbounding-box`\n\n## Feature\n* Being able to drag and drop vertical border horizontally\n* Pressing mouse cursor to place more adjacent border on the spot.\n* Right click to release the focus of the box\n* You can set the background out of the box darker with `setDarkerOutOfBox(f: bool)`.\n\n## Example\nCode Sample\n\n```python\nfrom PyQt5.QtWidgets import QWidget, QGridLayout, QApplication, QPushButton, QFileDialog\n\nfrom pyqt_hbounding_box.hboundingBox import HBoundingBox\n\n\nclass HBoundingBoxExample(QWidget):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        addImageBtn = QPushButton('Add image')\n        addImageBtn.clicked.connect(self.__addImage)\n        self.__view = HBoundingBox()\n\n        lay = QGridLayout()\n        lay.addWidget(addImageBtn)\n        lay.addWidget(self.__view)\n\n        self.setLayout(lay)\n\n    def __addImage(self):\n        filename = QFileDialog.getOpenFileName(self, 'Open', '', 'Image Files (*.png *.jpg *.bmp)')\n        if filename[0]:\n            filename = filename[0]\n            self.__view.setFile(filename)\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    ex = HBoundingBoxExample()\n    ex.show()\n    sys.exit(app.exec_())\n```\n\nResult\n\nhttps://user-images.githubusercontent.com/55078043/147186296-fa9083d0-67c6-4d7e-b139-7845ee38ddf9.mp4\n\n## See Also\n* \u003ca href=\"https://github.com/yjg30737/pyqt-vbounding-box.git\"\u003epyqt-vbounding-box\u003c/a\u003e - vertical way\n* \u003ca href=\"https://github.com/yjg30737/pyqt-bounding-box.git\"\u003epyqt-bounding-box\u003c/a\u003e - horizontal/vertical ways\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-hbounding-box","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-hbounding-box","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-hbounding-box/lists"}