{ "info": { "author": "Vince Shores", "author_email": "vince.shores@outlook.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Topic :: Software Development" ], "description": "# tkvalidate\nValidation functions that only allow integers or floats for tkinter `Entry` widgets\n\nThe validate functions are called with an `Entry` widget as an argument. The following code will validate an `Entry` so \nonly integers in the range -5 to 5 may be entered. \n\n import tkinter as tk\n\n root = tk.Tk()\n widget = tk.Entry(root, justify=tk.CENTER)\n widget.pack(padx=10, pady=10)\n int_validate(widget, from_=-5, to=5)\n root.mainloop()\n\nThis works on any subclass of `Entry`. For a `ttk.Spinbox` it can take the limits directly from the `Spinbox`. The \nfollowing code accomplishes the same as the previous but with a `Spinbox`.\n\n import tkinter as tk\n from tkinter import ttk\n\n root = tk.Tk()\n widget = ttk.Spinbox(root, justify=tk.CENTER, from_=-5, to=5)\n widget.pack(padx=10, pady=10)\n int_validate(widget)\n root.mainloop()\n\nFor validating floating points instead of integers, simply use `float_validate` instead.\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/vinceshores", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "tkvalidate", "package_url": "https://pypi.org/project/tkvalidate/", "platform": "", "project_url": "https://pypi.org/project/tkvalidate/", "project_urls": { "Homepage": "https://github.com/vinceshores" }, "release_url": "https://pypi.org/project/tkvalidate/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "Validation functions for tkinter Entry widgets that only allow integers or floats", "version": "1.0.1" }, "last_serial": 5412992, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "92553455660e4aa14aa7729c667f69ae", "sha256": "68d8ee55b958bc4b9d0d9ebaf9a59e59ec4d1dc272f5d4bbd2faf493ca8f7477" }, "downloads": -1, "filename": "tkvalidate-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "92553455660e4aa14aa7729c667f69ae", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5819, "upload_time": "2019-06-18T02:29:53", "url": "https://files.pythonhosted.org/packages/c4/7b/3acc50265087d3a73fb1cb05687b743c5c71b8714e60d63f1efa7bc19d5c/tkvalidate-1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9f76929d1c6a8f82261b65cd0dfae41f", "sha256": "1f2ebeaf17cd5f5e22dc12bfa27ece8fbc844355beac07cfc7822e8589985bf4" }, "downloads": -1, "filename": "tkvalidate-1.0.tar.gz", "has_sig": false, "md5_digest": "9f76929d1c6a8f82261b65cd0dfae41f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3106, "upload_time": "2019-06-18T02:29:55", "url": "https://files.pythonhosted.org/packages/3f/46/b12926bd7f1780e1070480f441aeb35ea9ab2c3f0ef9619492e30887d4e4/tkvalidate-1.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "1ddbe9dd26cfaf00efa6dccac4210dd8", "sha256": "781dbf52a3b8426ad9a5a0652fc1a0e47a51cccd85576aa90e20f746fdf73bff" }, "downloads": -1, "filename": "tkvalidate-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1ddbe9dd26cfaf00efa6dccac4210dd8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5864, "upload_time": "2019-06-18T02:39:33", "url": "https://files.pythonhosted.org/packages/21/5f/9e0580621aa5932418d02ce1b6c8ef9b40a6eca845106bc787894ec8d54f/tkvalidate-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "271c4e86503b8b860f564b967105be59", "sha256": "28c2ee08f12f45844c1dd0d92c35c006d6d21f48db1f3fe8f4544a2d91b6da3d" }, "downloads": -1, "filename": "tkvalidate-1.0.1.tar.gz", "has_sig": false, "md5_digest": "271c4e86503b8b860f564b967105be59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3123, "upload_time": "2019-06-18T02:39:34", "url": "https://files.pythonhosted.org/packages/b3/b7/e339c986dc0751b8893e1b10eecb808a12e206b57be78a506cd6bd13ee9f/tkvalidate-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1ddbe9dd26cfaf00efa6dccac4210dd8", "sha256": "781dbf52a3b8426ad9a5a0652fc1a0e47a51cccd85576aa90e20f746fdf73bff" }, "downloads": -1, "filename": "tkvalidate-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1ddbe9dd26cfaf00efa6dccac4210dd8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5864, "upload_time": "2019-06-18T02:39:33", "url": "https://files.pythonhosted.org/packages/21/5f/9e0580621aa5932418d02ce1b6c8ef9b40a6eca845106bc787894ec8d54f/tkvalidate-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "271c4e86503b8b860f564b967105be59", "sha256": "28c2ee08f12f45844c1dd0d92c35c006d6d21f48db1f3fe8f4544a2d91b6da3d" }, "downloads": -1, "filename": "tkvalidate-1.0.1.tar.gz", "has_sig": false, "md5_digest": "271c4e86503b8b860f564b967105be59", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3123, "upload_time": "2019-06-18T02:39:34", "url": "https://files.pythonhosted.org/packages/b3/b7/e339c986dc0751b8893e1b10eecb808a12e206b57be78a506cd6bd13ee9f/tkvalidate-1.0.1.tar.gz" } ] }