{ "info": { "author": "Alex Gale", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# GaleMenu - Simple Menu Generator\n\nGaleMenu is a simple menu generator for Python.\n\n## Installation\nTo install GaleMenu, run `pip install galemenu`.\n\nTo include it in your project, import it like so:\n```python\nimport galemenu\n```\n## Use\n\n### Creating a menu\n```python\nmenu = galemenu.menu(name, [border], [prompt], [text], [error])\n```\n**name** - the title of the menu\n\n**border** - the underline of the title (optional - default `=`)\n\n**prompt** - the characters shown before the input prompt (optional - default `>`)\n\n**text** - the text shown before the prompt (optional - blank by default)\n\n**error** - the message shown if an invalid menu choice made (optional - default `Please choose an option from the menu.`)\n\n### Adding options to menu\n```python\nmenu.additem(function, name, [parameters])\n```\n**function** - the function that the menu option points to\n\n**name** - the display name of the menu option\n\n**parameters** - an array of parameters to pass to the function (optional)\n\n### Displaying the menu\n```python\nmenu.start()\n```\nThis will start the menu and display it at the point when it is run\n\n### Example\n```python\nimport galemenu\n\ndef coolFunction(text):\n print(text)\n\nmenu = galemenu.menu(\"The best menu\")\nmenu.addItem(coolFunction, \"Item number 1\", [\"hey\"])\nmenu.addItem(coolFunction, \"Item number 2\", [\"hey2\"])\n\nmenu.start()\n```\nThis menu, called \"The best menu\", has 2 options - `Item number 1` and `Item number 2`. They each pass a single parameter to the function `coolFunction`.\n\n![this is where the picture of the menu is supposed to be](https://i.gyazo.com/2b2f686fb76517d4b525f728502c19fd.png)\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/alex-gale/GaleMenu", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "GaleMenu", "package_url": "https://pypi.org/project/GaleMenu/", "platform": "", "project_url": "https://pypi.org/project/GaleMenu/", "project_urls": { "Homepage": "https://github.com/alex-gale/GaleMenu" }, "release_url": "https://pypi.org/project/GaleMenu/1.1.3/", "requires_dist": null, "requires_python": "", "summary": "Simple Python menu generator", "version": "1.1.3" }, "last_serial": 4397835, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "95fc248c3fdc2266cccf19e313cc3c24", "sha256": "f005aab2c95a7cae62bc1045f1000618813fb4c80e5abe0f229c4f87ea4cd4da" }, "downloads": -1, "filename": "GaleMenu-1.0.3.tar.gz", "has_sig": false, "md5_digest": "95fc248c3fdc2266cccf19e313cc3c24", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1100, "upload_time": "2018-10-20T16:45:04", "url": "https://files.pythonhosted.org/packages/fe/59/5ed7dcc45d85a056c602586f3cb8f4f24544b47f05b41c8793f27abe5507/GaleMenu-1.0.3.tar.gz" } ], "1.0.4": [ { "comment_text": "", "digests": { "md5": "6e98cd1d3ee506bae0981f476d837f3d", "sha256": "41a717039fb85b6229273660ff09e598def0b8e85440ceee94f679a1289e8677" }, "downloads": -1, "filename": "GaleMenu-1.0.4.tar.gz", "has_sig": false, "md5_digest": "6e98cd1d3ee506bae0981f476d837f3d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1099, "upload_time": "2018-10-20T16:45:05", "url": "https://files.pythonhosted.org/packages/4a/46/02fe5f9b65f57d6aa8b8fb156b40e5b29b2149614db32204c051462e8444/GaleMenu-1.0.4.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "29673428890b023d22ad75be55b7c4dd", "sha256": "48d31dddeb1133837b2c5a80a425feb28a8487e15388ff0386e249874d349d98" }, "downloads": -1, "filename": "GaleMenu-1.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "29673428890b023d22ad75be55b7c4dd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3208, "upload_time": "2018-10-20T16:45:03", "url": "https://files.pythonhosted.org/packages/c8/ad/edf2bf51a33f9d8fae43b47bbfacddaaeef0d8f8676166d65b380d5666db/GaleMenu-1.1.1-py3-none-any.whl" } ], "1.1.2": [ { "comment_text": "", "digests": { "md5": "a24324e62310749495958e6a377d80e3", "sha256": "8065d2387d9587675c863a74553789868b51dcf1c463a69d77bc1a6b8fa4a35d" }, "downloads": -1, "filename": "GaleMenu-1.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a24324e62310749495958e6a377d80e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3270, "upload_time": "2018-10-20T16:58:03", "url": "https://files.pythonhosted.org/packages/b1/97/cf680b548ba6cb7a35b548f693dae0aa690d513c334d226946246f83ab94/GaleMenu-1.1.2-py3-none-any.whl" } ], "1.1.3": [ { "comment_text": "", "digests": { "md5": "f40f8a9947e1eb05ebd8ee8d8cacf775", "sha256": "f19ed971dbf0272b72727a584e5cb8039269275d40bdb673f30b40b8f1a1224a" }, "downloads": -1, "filename": "GaleMenu-1.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f40f8a9947e1eb05ebd8ee8d8cacf775", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3273, "upload_time": "2018-10-20T18:58:28", "url": "https://files.pythonhosted.org/packages/63/5a/bf3721cbac29a792c2a887dc28176e755bf93113ea2e10e67e8b443dc822/GaleMenu-1.1.3-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f40f8a9947e1eb05ebd8ee8d8cacf775", "sha256": "f19ed971dbf0272b72727a584e5cb8039269275d40bdb673f30b40b8f1a1224a" }, "downloads": -1, "filename": "GaleMenu-1.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "f40f8a9947e1eb05ebd8ee8d8cacf775", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3273, "upload_time": "2018-10-20T18:58:28", "url": "https://files.pythonhosted.org/packages/63/5a/bf3721cbac29a792c2a887dc28176e755bf93113ea2e10e67e8b443dc822/GaleMenu-1.1.3-py3-none-any.whl" } ] }