{"id":17603080,"url":"https://github.com/yjg30737/pyqt-timer-label","last_synced_at":"2025-04-13T03:42:08.150Z","repository":{"id":57678802,"uuid":"459818702","full_name":"yjg30737/pyqt-timer-label","owner":"yjg30737","description":"PyQt QLabel for timer feature","archived":false,"fork":false,"pushed_at":"2022-05-12T10:04:32.000Z","size":48,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-27T09:35:41.792Z","etag":null,"topics":["pyqt","pyqt-examples","pyqt5","pyqt5-examples","pyqt5-tutorial","python","python3","python37","qlabel","qt","qtime","qtimer","timer"],"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-16T02:05:56.000Z","updated_at":"2024-06-04T10:52:07.000Z","dependencies_parsed_at":"2022-09-10T19:40:09.035Z","dependency_job_id":null,"html_url":"https://github.com/yjg30737/pyqt-timer-label","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-timer-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-timer-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-timer-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yjg30737%2Fpyqt-timer-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yjg30737","download_url":"https://codeload.github.com/yjg30737/pyqt-timer-label/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248661023,"owners_count":21141381,"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","pyqt5","pyqt5-examples","pyqt5-tutorial","python","python3","python37","qlabel","qt","qtime","qtimer","timer"],"created_at":"2024-10-22T13:39:19.574Z","updated_at":"2025-04-13T03:42:08.129Z","avatar_url":"https://github.com/yjg30737.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pyqt-timer-label\nPyQt QLabel adapted to timer feature\n\n## Requirements\n* PyQt5 \u003e= 5.8\n\n## Setup\n`python -m pip install pyqt-timer-label`\n\n## Included Packages\n* \u003ca href=\"https://github.com/yjg30737/pyqt-responsive-label.git\"\u003epyqt-responsive-label\u003c/a\u003e - for auto-resize the font of label accordance with window's size \n\n## Detailed Description\nYou can set start hour/min/sec. Same to end. You can use this when you want to make a timer label which follows ```hh:mm:ss``` format. By the way, default end time is 00:00:00. You can change it with methods i'll explain below.\n\n## Method, Signal Overview\n* ```setStartHour(h: int)```, ```setStartMinute(m: int)```, ```setStartSecond(s: int)```. Same to end.\n* ```setTimerReverse(f: bool)``` to make timer go reversed. Default is True, which means subtracts one second.\n* There are useful methods like ```start()```, ```pause()```, ```restart()```, ```refresh()```, ```reset()```, ```stop()``` as well as useful signals like ```doubleClicked```, ```prepared```, ```started```, ```paused```, ```restarted```, ```refreshed```, ```resetSignal```, ```stopped```.\n* `isPaused() -\u003e bool` - Check if the timer being paused or not\n\n## Example\nCode Sample\n```python\nfrom PyQt5.QtWidgets import QApplication, QWidget, QGridLayout\nfrom pyqt_timer_label import TimerLabel\n\n\nif __name__ == \"__main__\":\n    import sys\n\n    app = QApplication(sys.argv)\n    lbl = TimerLabel()\n    lbl.setStartHour(0)\n    lbl.setStartMinute(0)\n    lbl.setStartSecond(15)\n    widget = QWidget()\n    lay = QGridLayout()\n    lay.addWidget(lbl)\n    widget.setLayout(lay)\n    widget.show()\n    lbl.start()\n    sys.exit(app.exec_())\n```\nStart time is 00:00:15. End time is by default so it is 00:00:00. \n\nResult\n\nhttps://user-images.githubusercontent.com/55078043/154182901-bb7fd5fb-4eb1-46dd-bd5e-3cc9bacf95c7.mp4\n\nNote: I started recording from 12 seconds approximately. Preparation for recording took time so the result shows from the moment which indicates 9 seconds left.\n\n## See Also\n* \u003ca href=\"https://github.com/yjg30737/pyqt-timer.git\"\u003epyqt-timer\u003c/a\u003e\n* \u003ca href=\"https://github.com/yjg30737/pyqt-transparent-timer.git\"\u003epyqt-transparent-timer\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-timer-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyjg30737%2Fpyqt-timer-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyjg30737%2Fpyqt-timer-label/lists"}