{ "info": { "author": "adder46", "author_email": "dedmauz69@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# tktimer \n\n**tktimer** is a set of tkinter widgets which includes a Stopwatch widget and a Countdown widget.\n\n## installing tktimer\n\n**tktimer** is available on PyPI:\n\n```sh\n$ pip install tktimer\n```\n\n## using tktimer\n\nTimers have two methods: `start` and `pause`.\n\nHere is an example program:\n\n```python\nimport tkinter as tk\n\nfrom tktimer import Countdown\n\nroot = tk.Tk()\ntimer = Countdown(root)\ntimer.grid(row=0, column=0, columnspan=2, sticky=\"nswe\")\ntk.Button(root, text=\"Start\", command=timer.start).grid(row=1, column=0)\ntk.Button(root, text=\"Pause\", command=timer.pause).grid(row=1, column=1)\nroot.mainloop()\n```\n\n**Available options**:\n\n\n| option | description | default |\n| --------- |:------------------|----------|\n| `parent` | set the parent widget | |\n| `prefix` | set text before timer value | `\"\"` |\n| `suffix` | set text after timer value. | `\"\"` |\n| `unit` | set the unit (available: `seconds`, `minutes`, `hours`, `days`, `weeks`, `years`) | `seconds` |\n| `beginning` | set starting point (in seconds). specific to `Countdown`. | `10` |\n| `update_every`| set updating time every X milliseconds. | `10` |\n| `precision` | set counting precision (number of digits after the decimal point). | `2` |\n| `time_elapsed`| set time elapsed (in seconds). specific to `Stopwatch`. | `10` |\n\n## FAQ\n\n**How can I continue the timer after restarting my app?**\n\nYou can get the elapsed time (in seconds) with `timer.value.get()` on exit and set `time_elapsed` later on, which will make the timer start counting from `time_elapsed`. For `Countdown`, tweak `beginning` instead of `time_elapsed`.\n\n**I'm not happy with how my timer looks like. Can I change its appearance?**\n\nYes, timers are ultimately just tkinter labels, which means you can do anything you would to an ordinary `tkinter.Label`. For example, to change the font, you can do:\n\n```python\ntimer.label.configure(font=\"Helvetica 18 bold\")\n```\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adder46/tktimer", "keywords": "timer stopwatch countdown tkinter", "license": "", "maintainer": "", "maintainer_email": "", "name": "tktimer", "package_url": "https://pypi.org/project/tktimer/", "platform": "", "project_url": "https://pypi.org/project/tktimer/", "project_urls": { "Homepage": "https://github.com/adder46/tktimer" }, "release_url": "https://pypi.org/project/tktimer/0.0.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Set of timer (stopwatch & countdown) widgets for tkinter", "version": "0.0.1" }, "last_serial": 5228573, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "667c6973181769c4a37794c41e449399", "sha256": "766e8ae334baa4a438b63b10d519e4564f2d8d14e3d56aadd91d9f1957bfd3f8" }, "downloads": -1, "filename": "tktimer-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "667c6973181769c4a37794c41e449399", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7344, "upload_time": "2019-05-05T14:17:52", "url": "https://files.pythonhosted.org/packages/fc/14/066a5ff550240fa97b5845a8d283f97b0dc0bfd481ef488a41d1094b3aed/tktimer-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d99e0fe99e12fcc0c637dae591a2f1f", "sha256": "435c8aae1e4cff356b8fefe4006d0c0546c8505bebda9a70909983b552c3aa47" }, "downloads": -1, "filename": "tktimer-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9d99e0fe99e12fcc0c637dae591a2f1f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10009, "upload_time": "2019-05-05T14:17:59", "url": "https://files.pythonhosted.org/packages/ca/18/9c8e0a2abf215c34d00bff8d663b96ee75be5b770b10df54e39a26405190/tktimer-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "667c6973181769c4a37794c41e449399", "sha256": "766e8ae334baa4a438b63b10d519e4564f2d8d14e3d56aadd91d9f1957bfd3f8" }, "downloads": -1, "filename": "tktimer-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "667c6973181769c4a37794c41e449399", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7344, "upload_time": "2019-05-05T14:17:52", "url": "https://files.pythonhosted.org/packages/fc/14/066a5ff550240fa97b5845a8d283f97b0dc0bfd481ef488a41d1094b3aed/tktimer-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9d99e0fe99e12fcc0c637dae591a2f1f", "sha256": "435c8aae1e4cff356b8fefe4006d0c0546c8505bebda9a70909983b552c3aa47" }, "downloads": -1, "filename": "tktimer-0.0.1.tar.gz", "has_sig": false, "md5_digest": "9d99e0fe99e12fcc0c637dae591a2f1f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10009, "upload_time": "2019-05-05T14:17:59", "url": "https://files.pythonhosted.org/packages/ca/18/9c8e0a2abf215c34d00bff8d663b96ee75be5b770b10df54e39a26405190/tktimer-0.0.1.tar.gz" } ] }