{"id":17603010,"url":"https://github.com/yjg30737/pyqt-textbox-graphics-widget","last_synced_at":"2026-04-30T10:38:34.102Z","repository":{"id":57679219,"uuid":"457352973","full_name":"yjg30737/pyqt-textbox-graphics-widget","owner":"yjg30737","description":"PyQt text box which is movable, auto-resizable by text size. Parent class is QGraphicsWidget.","archived":false,"fork":false,"pushed_at":"2022-05-13T22:28:34.000Z","size":13,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-17T05:06:58.397Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt5","pyqt5-examples","pyqt5-gui","pyqt5-tutorial","qbrush","qgradient","qgraphicsgridlayout","qgraphicsscene","qgraphicsview","qgraphicswidget","qpainter","qpen","qt","qtextbrowser"],"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":"2022-02-09T12:40:33.000Z","updated_at":"2025-03-31T03:11:43.000Z","dependencies_parsed_at":"2022-09-04T02:11:00.614Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-textbox-graphics-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-textbox-graphics-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-textbox-graphics-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-textbox-graphics-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-textbox-graphics-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-textbox-graphics-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-textbox-graphics-widget/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-textbox-graphics-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32462304,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"online","status_checked_at":"2026-04-30T02:00:05.929Z","response_time":57,"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":["pyqt","pyqt-examples","pyqt5","pyqt5-examples","pyqt5-gui","pyqt5-tutorial","qbrush","qgradient","qgraphicsgridlayout","qgraphicsscene","qgraphicsview","qgraphicswidget","qpainter","qpen","qt","qtextbrowser"],"created_at":"2024-10-22T13:37:05.794Z","updated_at":"2026-04-30T10:38:34.073Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-textbox-graphics-widget\nPyQt text box which is movable, auto-resizable by text size. Parent class is QGraphicsWidget.\n\n## Requirements\n* PyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-textbox-graphics-widget`\n\n## Usage\nYou can move the box if you drag any areas near the border. If you click any areas near the middle of the box, cursor will be shown to let you write something down. Box will be auto-resized by text size. (See the result below)\n\n## Example\nCode Sample\n```python\nfrom PyQt5.QtWidgets import QApplication, QGraphicsView, QGraphicsScene, QMainWindow\nfrom pyqt_textbox_graphics_widget import TextBoxGraphicsWidget\n\n\nclass DiagramMainWindow(QMainWindow):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        view = QGraphicsView()\n\n        self.__scene = QGraphicsScene()\n        self.__scene.setSceneRect(0, 0, 400, 400)\n        \n        textBox = TextBoxGraphicsWidget()\n        self.__scene.addItem(textBox)\n        view.setScene(self.__scene)\n\n        self.setCentralWidget(view)\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    diagramMainWindow = DiagramMainWindow()\n    diagramMainWindow.show()\n    sys.exit(app.exec_())\n```\n\nResult\n\nhttps://user-images.githubusercontent.com/55078043/153204254-cd5776c3-54c3-47a5-9285-98229b0376b1.mp4\n\n## See Also\n* \u003ca href=\"https://github.com/yjg30737/pyqt-styled-graphics-text-item-example.git\"\u003epyqt-styled-graphics-text-item-example\u003c/a\u003e - This is based on ```QGraphicsTextItem```. In terms of usefulness, ```pyqt-styled-graphics-text-item-example``` is more inferior than this one.  \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-textbox-graphics-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-textbox-graphics-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-textbox-graphics-widget/lists"}