{ "info": { "author": "yurihs", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: Portuguese (Brazilian)", "Programming Language :: Python :: 3 :: Only", "Topic :: Multimedia :: Graphics" ], "description": "graphics.py-extra\n=================\n\n.. image:: http://img.shields.io/pypi/v/graphics.py-extra.svg\n :target: https://pypi.python.org/pypi/graphics.py-extra\n\n.. image:: https://img.shields.io/github/last-commit/yurihs/graphics_extra.svg\n :target: https://github.com/yurihs/graphics_extra/\n\nEsse pacote fornece mais formas para se desenhar com o pacote\ngraphics.py_.\n\nOs objetos gr\u00e1ficos inclu\u00eddos s\u00e3o:\n\n- ``RoundedRectangle`` (um ret\u00e2ngulo com os cantos arredondados)\n- ``FreeText`` (desenhar texto sem limites sobre a fonte usada)\n- ``Triangle`` (tri\u00e2ngulo de qualquer tipo: definido pelas medidas dos lados e \u00e2ngulos)\n\nExemplos\n========\n\n**Exemplo 1:** Desenhar um ret\u00e2ngulo com os cantos arredondados.\n\n.. code:: python\n\n import graphics\n from graphics_extra import RoundedRectangle\n\n win = graphics.GraphWin('Exemplo do RoundedRectangle', 400, 300)\n\n rect = RoundedRectangle(\n graphics.Point(50, 50),\n graphics.Point(350, 250),\n radius=100\n )\n rect.setFill('light sky blue')\n\n rect.draw(win)\n\n\n**Exemplo 2:** Mostrar texto com uma fonte qualquer.\n\n.. code:: python\n\n import graphics\n import tkinter.font\n from graphics_extra import FreeText\n\n win = graphics.GraphWin('Exemplo do FreeText', 400, 300)\n\n open_sans_font = tkinter.font.Font(family='Open Sans', weight='normal', size=46)\n txt = FreeText(graphics.Point(200, 150), 'Lorem ipsum', open_sans_font)\n\n # txt.setAlignment('SW') # esse \u00e9 o padr\u00e3o do FreeText\n txt.setAlignment('CENTER') # esse \u00e9 o padr\u00e3o do graphics.Text\n\n # Mostrar o espa\u00e7o (largura, altura) que o texto ocupar\u00e1\n print('Text width:', txt.getWidth(win))\n print('Text height:', txt.getHeight(win))\n\n txt.draw(win)\n\n**Exemplo 3:** Desenhar um tri\u00e2nglo is\u00f3sceles agudo.\n\n.. code:: python\n\n import math\n import graphics\n from graphics_extra import Triangle\n\n win = graphics.GraphWin('Exemplo do Triangle', 400, 300)\n\n t = Triangle(\n graphics.Point(125, 200) , # Posi\u00e7\u00e3o do v\u00e9rtice B\n angle_a=math.radians(55), # \u00c2ngulo do v\u00e9rtice A (converter de graus para radianos)\n angle_b=math.radians(55), # \u00c2ngulo do v\u00e9rtice B (converter de graus para radianos)\n side_c=150 # Comprimento do lado C\n )\n t.draw(win)\n\n\n.. _graphics.py: https://pypi.python.org/pypi/graphics.py/\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yurihs/graphics_extra/", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "graphics.py-extra", "package_url": "https://pypi.org/project/graphics.py-extra/", "platform": "", "project_url": "https://pypi.org/project/graphics.py-extra/", "project_urls": { "Homepage": "https://github.com/yurihs/graphics_extra/" }, "release_url": "https://pypi.org/project/graphics.py-extra/0.2.0/", "requires_dist": null, "requires_python": "", "summary": "Extra objects for the graphics.py package", "version": "0.2.0" }, "last_serial": 3402034, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fedde6499094193d06366f24cc29cb7d", "sha256": "e636041908460a4195c055ec1a112097c6c11bbc65020ca045e22b1240e656f0" }, "downloads": -1, "filename": "graphics.py-extra-0.0.1.tar.gz", "has_sig": false, "md5_digest": "fedde6499094193d06366f24cc29cb7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4325, "upload_time": "2017-12-04T22:41:58", "url": "https://files.pythonhosted.org/packages/8e/c5/14de4bb59e92ae979cf617733bc7208ee335f722708872087e82a8a2520d/graphics.py-extra-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4f14254016224e16b0fb0f97f5a20c1a", "sha256": "92dfe9c45cc54cc2d6815ed2978700025b9413624685fdcb1f47549207eb354f" }, "downloads": -1, "filename": "graphics.py-extra-0.0.2.tar.gz", "has_sig": false, "md5_digest": "4f14254016224e16b0fb0f97f5a20c1a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4329, "upload_time": "2017-12-04T22:49:05", "url": "https://files.pythonhosted.org/packages/65/89/3ac4c91cae9447edb12f38b9476294ad641c4ec771b945b98085295fe874/graphics.py-extra-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "bb0233a33fd81105200c6244a1f21c77", "sha256": "f72fe30a95f44ebb3e7a8c8a9d469cab57d2f78d33275abdf0fe5a6c19c98210" }, "downloads": -1, "filename": "graphics.py-extra-0.0.3.tar.gz", "has_sig": false, "md5_digest": "bb0233a33fd81105200c6244a1f21c77", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4340, "upload_time": "2017-12-04T22:51:35", "url": "https://files.pythonhosted.org/packages/dd/60/e1c59b531e52b27f3225b453b772cd06420e5aa3e4a09d0d25492d9ec497/graphics.py-extra-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "252a5f290485ad0dd17f0dd235a6f220", "sha256": "5e628e2a042019d08a5b3bd73f31852d751c58a0f4fe518534dbee328f593c1c" }, "downloads": -1, "filename": "graphics.py-extra-0.0.4.tar.gz", "has_sig": false, "md5_digest": "252a5f290485ad0dd17f0dd235a6f220", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4439, "upload_time": "2017-12-04T22:55:28", "url": "https://files.pythonhosted.org/packages/6e/fe/b13a72a045119ec70ff32a5c208f913572d6073369b304761866a9520776/graphics.py-extra-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "aa4813cb728abc345792d5c1dbc52116", "sha256": "f8f1c7f348632c5062dae0b9fcd62b0f3fe330fdd74313c486fe0699f2738caf" }, "downloads": -1, "filename": "graphics.py-extra-0.0.5.tar.gz", "has_sig": false, "md5_digest": "aa4813cb728abc345792d5c1dbc52116", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4317, "upload_time": "2017-12-05T13:13:36", "url": "https://files.pythonhosted.org/packages/7c/16/f5e991a0eef330d49af47354253187194cf85b5877ee12c1801f1985d96b/graphics.py-extra-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "ccea01508b992ad6c9bee16777c3a746", "sha256": "d6bb2203c0f161e096df89fc95036530578558ee1193ef53ad062c26e840cbd0" }, "downloads": -1, "filename": "graphics.py-extra-0.0.6.tar.gz", "has_sig": false, "md5_digest": "ccea01508b992ad6c9bee16777c3a746", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4593, "upload_time": "2017-12-05T13:25:36", "url": "https://files.pythonhosted.org/packages/41/3b/9940e1e09099af4e63207f6cd392dad35bd3bfc84037e14b5d3c8434e433/graphics.py-extra-0.0.6.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "7bd2aa11030e82f9e917b205d9105d4b", "sha256": "d925913b867a52519ce93e3f58f749415790dd6d24bb8cc7fc5456129a94540c" }, "downloads": -1, "filename": "graphics.py-extra-0.1.0.tar.gz", "has_sig": false, "md5_digest": "7bd2aa11030e82f9e917b205d9105d4b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6017, "upload_time": "2017-12-08T20:41:31", "url": "https://files.pythonhosted.org/packages/bd/27/96fd0adb608589e53ac266270737e75df39ab340a206b99f723b8e260462/graphics.py-extra-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "dfc23c154749d4afa12c8e737d326795", "sha256": "6c3801ace7b5f3af92a83ce179938941d097457e359129da98090b8ded966a23" }, "downloads": -1, "filename": "graphics.py-extra-0.2.0.tar.gz", "has_sig": false, "md5_digest": "dfc23c154749d4afa12c8e737d326795", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6129, "upload_time": "2017-12-08T20:57:42", "url": "https://files.pythonhosted.org/packages/1d/43/3f2ebd8e6003284dc09767ba5b1b7c3cfd5237aab8430d1c58866566ad76/graphics.py-extra-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dfc23c154749d4afa12c8e737d326795", "sha256": "6c3801ace7b5f3af92a83ce179938941d097457e359129da98090b8ded966a23" }, "downloads": -1, "filename": "graphics.py-extra-0.2.0.tar.gz", "has_sig": false, "md5_digest": "dfc23c154749d4afa12c8e737d326795", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6129, "upload_time": "2017-12-08T20:57:42", "url": "https://files.pythonhosted.org/packages/1d/43/3f2ebd8e6003284dc09767ba5b1b7c3cfd5237aab8430d1c58866566ad76/graphics.py-extra-0.2.0.tar.gz" } ] }