{"id":14982700,"url":"https://github.com/yjg30737/pyqt-moving-label","last_synced_at":"2026-02-21T23:06:51.263Z","repository":{"id":62591841,"uuid":"497885104","full_name":"yjg30737/pyqt-moving-label","owner":"yjg30737","description":"PyQt label which is moving from left to right","archived":false,"fork":false,"pushed_at":"2022-05-30T23:58:52.000Z","size":17,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T04:23:36.190Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt-gui","pyqt-tutorial","pyqt5","qlabel","qpropertyanimation","qt","qt5"],"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-05-30T10:00:19.000Z","updated_at":"2022-09-17T06:27:49.000Z","dependencies_parsed_at":"2022-11-03T22:55:21.558Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-moving-label","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yjg30737/pyqt-moving-label","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-moving-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-moving-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-moving-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-moving-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-moving-label/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-moving-label/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29697085,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T18:18:25.093Z","status":"ssl_error","status_checked_at":"2026-02-21T18:18:22.435Z","response_time":107,"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-gui","pyqt-tutorial","pyqt5","qlabel","qpropertyanimation","qt","qt5"],"created_at":"2024-09-24T14:05:52.925Z","updated_at":"2026-02-21T23:06:51.248Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-moving-label\nPyQt label which is moving from left to right\n\n## Requirements\n* PyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-moving-label`\n\n## Detailed Description\nThis inherits the QLabel.\n\nGood to use as an advertisement or notice tool.\n\nYou can create constructor like this - `MovingLabel('Moving Label', parent_class)`. Both two arguments are necessary.\n\nMoving duration is set to 3000 milliseconds by default.\n\n### Method Overview\n* `setDurationBasedOnWindowSize(f: bool)` - Set the duration based on window size. If you set this to `True`, The window gets bigger the moving speed gets faster. The window gets smaller the moving speed gets slower.\n* `setDuration(milliseconds: int)` - Set the duration of label moving from left to right.\n\n## Example\nCode Sample\n```python\nfrom PyQt5.QtWidgets import QMainWindow, QApplication, QVBoxLayout, QTextEdit, QWidget\nfrom pyqt_moving_label.movingLabel import MovingLabel\n\n\nclass MainWindow(QMainWindow):\n    def __init__(self):\n        super().__init__()\n        self.__initUi()\n\n    def __initUi(self):\n        self.__label = MovingLabel('Moving Label', self)\n        # if you want to set the dynamic moving speed based on window size\n        # self.__label.setDurationBasedOnWindowSize(True)\n        # if you want to set the duration\n        # self.__label.setDuration(5000)\n\n        lay = QVBoxLayout()\n        lay.addWidget(self.__label)\n        lay.addWidget(QTextEdit())\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    w = MainWindow()\n    w.show()\n    sys.exit(app.exec_())\n```\n\nResult\n\nhttps://user-images.githubusercontent.com/55078043/170969527-91c80a06-b6eb-4aaf-a305-421479bd7139.mp4\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-moving-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-moving-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-moving-label/lists"}