{ "info": { "author": "pmcoelho", "author_email": "pmcoelho@protonmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: X11 Applications", "Environment :: X11 Applications :: GTK", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX :: Linux", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "# SpaceMenu\n\n## Description\nSpaceMenu is a python module inspired by the [spacemacs](http://spacemacs.org) \"space menu\". \nDesigned to be used as a laucher for i3wm\n\n## Dependencies\ngtk-3.0\n\n## Installation\n```bash\npip install spacemenu\n```\n\n## Usage\n\n### Window\nThe class Window represents the menu window itself\n\n```python\nfrom spacemenu import Window\nwindow = Window(root, options)\n```\n\n##### Parameters\nroot -> A dictionary with the desired display information in the following schema:\n```\n{\n \"label\": 'title of the window',\n \"branches\": [\n {\n \"label\": \"label for the first branch\",\n \"branches\": [],\n \"leaves\": []\n }\n ],\n \"leaves\": [\n { \"label\": \"label for leaf 1\", \"command\": \"shell command to be executed\"\"}\n ]\n}\n```\nso, a branch can contain other branches or leaves, and each leaf executes a command.\n\n\noptions -> Options can either be a dictonary or an Options object\n```\n{\n \"margin\": 10,\n \"column_spacing\": 1,\n \"row_spacing\": 1,\n \"max_columns\": 5,\n \"row_height\": 35,\n \"margin_left\": 0,\n \"margin_right\": 0,\n \"margin_bottom\": 0,\n \"font\": \"italic bold 12px Georgia, serif\",\n \"background_color\": \"#ffffff\"\n \"button_background_color\": \"#ffffff\"\n \"button_text_color\": \"#000000\"\n \"branch_background_color\": \"#ffffff\",\n \"branch_text_color\": \"#ffffff\",\n \"branch_text_shortcut_color\": \"#ff0000\",\n \"branch_text_separator_color\": \"#00ff00\",\n \"branch_text_label_color\": \"#0000ff\",\n \"leaf_background_color\": \"#ffffff\",\n \"leaf_text_color\": \"#000000\",\n \"leaf_text_shortcut_color\": \"#ff0000\",\n \"leaf_text_separator_color': \"#00ff00\",\n \"leaf_text_label_color\": \"#0000ff\"\n}\n```\nnote: any undefined values will be set to the Gtk theme default\n\n#### Methods\ndraw() -> draw the window\n\n### Options\n#### Outer Shape\n * margin_left: Sets outer left margin (in px)\n * margin_right: Sets outer right margin (in px)\n * margin_bottom: Sets outer bottom margin (in px)\n\n#### Inner Shap\n * inner_margin: Inner margin for the window\n * column_spacing: Spacing between each column\n * row_spacing: Spacing between each row\n * max_columns: Maximum number of columns to display\n * row_height: The height of the buttons in each row\n * font: Font to be used by the labels\n\n#### Colors\n * background_color: The color for the window background (#rrggbb)\n * button_background_color: The color for the button background (#rrggbb)\n * button_text_color: The color for the text of the buttons(#rrggbb)\n\n## TODO\n * allow externally defined shortcuts\n\n## License\nGPL-3.0-or-later \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/pm-coelho/spacemenu", "keywords": "", "license": "GPLv3+", "maintainer": "", "maintainer_email": "", "name": "spacemenu", "package_url": "https://pypi.org/project/spacemenu/", "platform": "", "project_url": "https://pypi.org/project/spacemenu/", "project_urls": { "Homepage": "https://github.com/pm-coelho/spacemenu" }, "release_url": "https://pypi.org/project/spacemenu/0.4/", "requires_dist": [ "pycairo", "PyGObject" ], "requires_python": "", "summary": "A spacemacs menu inspired gtk module", "version": "0.4" }, "last_serial": 5331662, "releases": { "0.1a1": [ { "comment_text": "", "digests": { "md5": "b2da1993e5cd23fd0e82987cc318d2f0", "sha256": "a04310ba55cf95219a27abfdeff986b8582766fecda53debdce6b057f0540daf" }, "downloads": -1, "filename": "spacemenu-0.1a1-py3-none-any.whl", "has_sig": false, "md5_digest": "b2da1993e5cd23fd0e82987cc318d2f0", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19109, "upload_time": "2019-05-09T11:00:53", "url": "https://files.pythonhosted.org/packages/b3/c5/1dc24e0d57f4ec777e360d0a91a7aafcfc81b4f4c6ddeda34e684a884747/spacemenu-0.1a1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9e069cda005dae2505133e07334d0a0f", "sha256": "ea6e544dfbecd4d3965b93db1f31e1d30939b398d0488541d978adc8b18fcd37" }, "downloads": -1, "filename": "spacemenu-0.1a1.tar.gz", "has_sig": false, "md5_digest": "9e069cda005dae2505133e07334d0a0f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4892, "upload_time": "2019-05-09T11:00:55", "url": "https://files.pythonhosted.org/packages/6b/15/f3f39cd755d89c1e5d8e9e113d2b21e7f032a3bfdde2dfabeda0468b7834/spacemenu-0.1a1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "90493b062c421ad14b3a0b5d7fd76925", "sha256": "b9f2d06b6c2f9cfa6a9c6fbee63834b1935dbf02697731418dbdc59024c4bf21" }, "downloads": -1, "filename": "spacemenu-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "90493b062c421ad14b3a0b5d7fd76925", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 18827, "upload_time": "2019-05-09T14:29:56", "url": "https://files.pythonhosted.org/packages/94/ff/da83403478b526824c3639ea0517c8725b2a3efbee060d1b9570c2806bfb/spacemenu-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb37f6edc429bc80e1619db032756aa3", "sha256": "cf44cd4a9c6b3c9b2f566e6379520e266e8785661f1cdccd1a237f6e8df03392" }, "downloads": -1, "filename": "spacemenu-0.2.tar.gz", "has_sig": false, "md5_digest": "eb37f6edc429bc80e1619db032756aa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4950, "upload_time": "2019-05-09T14:29:57", "url": "https://files.pythonhosted.org/packages/98/19/263202eff19dbf183275ce9d09eb9a6fa80ef618dab6719b3d19acdaa496/spacemenu-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "2047ab6f89e5771f0485ca41c74b8c47", "sha256": "8dd407975d3ceacddfdc83fd0ad44abddbbee1d00b439f07d4b6e55a9040af67" }, "downloads": -1, "filename": "spacemenu-0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "2047ab6f89e5771f0485ca41c74b8c47", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 19771, "upload_time": "2019-05-17T18:57:26", "url": "https://files.pythonhosted.org/packages/f1/06/47df294bcc6a1aa6e804928c095a6f31c3e44fec28c47baf3e66a9e23f52/spacemenu-0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1085c3e86686187227c2ab464e632566", "sha256": "43e2e3c628feb1240abb0ddf842eddcb139d437f92ed4720fa28132743c4b146" }, "downloads": -1, "filename": "spacemenu-0.3.tar.gz", "has_sig": false, "md5_digest": "1085c3e86686187227c2ab464e632566", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5801, "upload_time": "2019-05-17T18:57:28", "url": "https://files.pythonhosted.org/packages/a6/1e/da602136ad9decd0a196ff34f665375b10a5352d856a59633c250bed0baf/spacemenu-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "cf4353f502278a79d0e2d524536d3157", "sha256": "588acad1f1c96b41ad22208548770bf2134384671894141c9217fb9d160dd1e6" }, "downloads": -1, "filename": "spacemenu-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "cf4353f502278a79d0e2d524536d3157", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20698, "upload_time": "2019-05-29T10:32:28", "url": "https://files.pythonhosted.org/packages/51/91/5b9c853f55cf5a1206de6f6cbdfaf9d174cf7b47b4b34a771d7424fef603/spacemenu-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d7dc7a9cafbadf9b026f1db9bab0360", "sha256": "a5d19f04b7020a924f93bf941791ce2ccec08b8b1d94d9e23e7bc4b37b2d59bf" }, "downloads": -1, "filename": "spacemenu-0.4.tar.gz", "has_sig": false, "md5_digest": "4d7dc7a9cafbadf9b026f1db9bab0360", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7266, "upload_time": "2019-05-29T10:32:30", "url": "https://files.pythonhosted.org/packages/02/b9/16e2482977fa50f8a2bda30103d49f26a10c1f468e6d3f7f7a479c0a16d4/spacemenu-0.4.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cf4353f502278a79d0e2d524536d3157", "sha256": "588acad1f1c96b41ad22208548770bf2134384671894141c9217fb9d160dd1e6" }, "downloads": -1, "filename": "spacemenu-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "cf4353f502278a79d0e2d524536d3157", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 20698, "upload_time": "2019-05-29T10:32:28", "url": "https://files.pythonhosted.org/packages/51/91/5b9c853f55cf5a1206de6f6cbdfaf9d174cf7b47b4b34a771d7424fef603/spacemenu-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4d7dc7a9cafbadf9b026f1db9bab0360", "sha256": "a5d19f04b7020a924f93bf941791ce2ccec08b8b1d94d9e23e7bc4b37b2d59bf" }, "downloads": -1, "filename": "spacemenu-0.4.tar.gz", "has_sig": false, "md5_digest": "4d7dc7a9cafbadf9b026f1db9bab0360", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7266, "upload_time": "2019-05-29T10:32:30", "url": "https://files.pythonhosted.org/packages/02/b9/16e2482977fa50f8a2bda30103d49f26a10c1f468e6d3f7f7a479c0a16d4/spacemenu-0.4.tar.gz" } ] }