{ "info": { "author": "Andre Miras", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# garden.layoutmargin\n\n[![Build Status](https://travis-ci.com/AndreMiras/garden.layoutmargin.svg?branch=develop)](https://travis-ci.com/AndreMiras/garden.layoutmargin)\n[![PyPI version](https://badge.fury.io/py/layoutmargin.svg)](https://badge.fury.io/py/layoutmargin)\n\nA set of mixins (`MarginLayout`, `AddMargin`) that adds `margin` functionality to Kivy widgets. \n\n\n![demo](http://i.imgur.com/4cCZL3t.gif)\n\n\n## How to use\n\n### @ `.py` subclasses:\n```python\nfrom layoutmargin import AddMargin, MarginLayout\n\n\nclass MarginBoxLayout(MarginLayout, BoxLayout):\n pass\n\n\nclass MarginButton(AddMargin, Button):\n pass\n```\n\n\n### @ `.kv` layout:\n```yaml\nMarginBoxLayout:\n\n MarginButton:\n margin: (30, 10, 30, 10) # integer / float\n\n MarginButton:\n margin: (\"10%\", \"10%\", \"10%\", \"10%\") # percentage of total widget size\n\n MarginButton:\n margin: (30, \"10%\", 30, \"10%\") # mixed\n```\n\n## Run the demo\n```\nmake run\n```\n\n## Install\n```sh\npip install layoutmargin\n```\n\n## Credits\nForked from [Enteleform/-Kivy-MarginLayout-Demo](https://github.com/Enteleform/-Kivy-MarginLayout-Demo).\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/AndreMiras/garden.layoutmargin", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "layoutmargin", "package_url": "https://pypi.org/project/layoutmargin/", "platform": "", "project_url": "https://pypi.org/project/layoutmargin/", "project_urls": { "Homepage": "https://github.com/AndreMiras/garden.layoutmargin" }, "release_url": "https://pypi.org/project/layoutmargin/20190911/", "requires_dist": [ "kivy" ], "requires_python": "", "summary": "Mixins that adds margin functionality to Kivy widgets", "version": "20190911" }, "last_serial": 5817311, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "7acb0eda3e0de9b88ee60152384fd218", "sha256": "c23c234d70d13e2076d3ea61aabbfbac0bd6fbe9c710587b168edda471557c23" }, "downloads": -1, "filename": "layoutmargin-0.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "7acb0eda3e0de9b88ee60152384fd218", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4612, "upload_time": "2019-09-11T22:23:54", "url": "https://files.pythonhosted.org/packages/e4/74/403b64aec4ae445e95cff0abdb55650b1821553cbce1dd882ef80009da65/layoutmargin-0.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dfa8b0b880833e8b2773bc4ae620f950", "sha256": "48afb2ee52fd222b7a3d0ec48791c4157fefc8dac1fab9f56437402ec38df463" }, "downloads": -1, "filename": "layoutmargin-0.0.0.tar.gz", "has_sig": false, "md5_digest": "dfa8b0b880833e8b2773bc4ae620f950", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3259, "upload_time": "2019-09-11T22:23:57", "url": "https://files.pythonhosted.org/packages/50/34/fff80fd006d012a63358c440f899012b47d59be3b24eb6e350d7c129e242/layoutmargin-0.0.0.tar.gz" } ], "20190911": [ { "comment_text": "", "digests": { "md5": "20fa5d32ad6ae5b7e54bdd3b3a01d9c9", "sha256": "9ff709ad5728316dbe51638022a1e09a0f924a0615dd3cd326211e02d9033373" }, "downloads": -1, "filename": "layoutmargin-20190911-py3-none-any.whl", "has_sig": false, "md5_digest": "20fa5d32ad6ae5b7e54bdd3b3a01d9c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4669, "upload_time": "2019-09-11T22:36:23", "url": "https://files.pythonhosted.org/packages/02/1b/c046b09c063ee9773039661159fe3a843e1ca68f6f274866362301311f18/layoutmargin-20190911-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dd15c29314d4213119dae2904a7538d", "sha256": "0643b03abe01fb51f89c757e4ea1a354e77920fa6cd60816acb4466c7284362f" }, "downloads": -1, "filename": "layoutmargin-20190911.tar.gz", "has_sig": false, "md5_digest": "5dd15c29314d4213119dae2904a7538d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3291, "upload_time": "2019-09-11T22:36:25", "url": "https://files.pythonhosted.org/packages/cd/02/7a75743f5bf4356d5c26cad861ad7da30f02d7c7d2c9c2a22d4501725f7c/layoutmargin-20190911.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "20fa5d32ad6ae5b7e54bdd3b3a01d9c9", "sha256": "9ff709ad5728316dbe51638022a1e09a0f924a0615dd3cd326211e02d9033373" }, "downloads": -1, "filename": "layoutmargin-20190911-py3-none-any.whl", "has_sig": false, "md5_digest": "20fa5d32ad6ae5b7e54bdd3b3a01d9c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4669, "upload_time": "2019-09-11T22:36:23", "url": "https://files.pythonhosted.org/packages/02/1b/c046b09c063ee9773039661159fe3a843e1ca68f6f274866362301311f18/layoutmargin-20190911-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dd15c29314d4213119dae2904a7538d", "sha256": "0643b03abe01fb51f89c757e4ea1a354e77920fa6cd60816acb4466c7284362f" }, "downloads": -1, "filename": "layoutmargin-20190911.tar.gz", "has_sig": false, "md5_digest": "5dd15c29314d4213119dae2904a7538d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3291, "upload_time": "2019-09-11T22:36:25", "url": "https://files.pythonhosted.org/packages/cd/02/7a75743f5bf4356d5c26cad861ad7da30f02d7c7d2c9c2a22d4501725f7c/layoutmargin-20190911.tar.gz" } ] }