{ "info": { "author": "Akif Patel", "author_email": "superwires@supernovaapps.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python", "Topic :: Multimedia :: Graphics" ], "description": "README\n----------------------------\n\n\n\nIntroduction:\n-----------------\n\tThis graphics library was written to be exactly comptible with the chapters \nin the book: 'Python for the Absolute Beginner'. The reformatted version of \nlivewires(http://tertial.livewires.org.uk/python/home) was incredibly simple \nto use, powerful, and had many features. As the book became outdated copies of\nthe library-the reformated version-became harder and harder to find. Trying to\nfind a copy to teach some newcomers to python and failing, we decided\nto write our own library, compatible, to the dot, with the book's tutorials.\nHopefully this will help a some people.\n\tSince this is a reformatted version of livewires,we decided to call it \nsuperwires. If you have a copy of the book, or any of its programs, you\nonly have change the line: 'from livewires import game' to\n'from superwires import games' and it will work as intended. If you don't have\nthe book and just want a good graphics library for python, read the tutorial\nahead, or read the documentation at: https://pythonhosted.org/SuperWires/\n\n\nTutorial\n---------------\n\nSimple Program:\n----------------\nfrom superwires import games\n\ngames.init(screen_width=640, screen_height=480, fps=50)\n#makes screen with width, height, and frames per second\n\ngames.screen.mainloop() # event loop\n\nThat made a black window!!!\n\nNow add this line in the middle:\ngames.screen.background=load_image('filename.png')\n\nThat made a background!!!\n\nNow this:\ngames.screen.add(Sprite(games.load_image('file.png'), x=320, y=240, dx=3, dy=3))#dx and dy stand for delta x and delta y\n\nThat made a moving sprite!!!!\n\nOverriding Sprite:\n-----------------------\n\nFirst make a class:\n\nclass Bouncy_Ball(games.sprite):\n\tdef __init__(self):\n\t\tsuper(self, Bouncy_Ball).__init__(games.load_image('ball.png'), x=320, y=240, dx=3, dy=3)#normal super init\n\n\tdef update(self): #this is empty by default but is called every frame\n\t\tif self.left<=0 or self.right>=640:#right and left edges to check if on edge\n\t\t\tself.dx*=-1#reverse x velocity\n\t\t\n\t\tif self.top<=0 or self.bottom>=480:#top and bottom edges to check if on edge\n\t\t\tself.dy*=-1#reverse y velocity\n\nNow instead of adding a sprite do:\ngames.screen.add(Bouncy_Ball())\n\nThat made a bouncing ball!!!!!", "description_content_type": null, "docs_url": "https://pythonhosted.org/SuperWires/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.supernovaapps.com/", "keywords": "livewires python graphics pygame library", "license": "Apache 2.0", "maintainer": null, "maintainer_email": null, "name": "SuperWires", "package_url": "https://pypi.org/project/SuperWires/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/SuperWires/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://www.supernovaapps.com/" }, "release_url": "https://pypi.org/project/SuperWires/0.9.6/", "requires_dist": null, "requires_python": null, "summary": "Rewriting of the graphics library in 'Python for the Absolute Beginner' book.", "version": "0.9.6" }, "last_serial": 1543122, "releases": { "0.9.2": [ { "comment_text": "built for Linux-3.16.0-37-generic-x86_64-with-glibc2.4", "digests": { "md5": "3da18c26e382995f81f54d9616f98026", "sha256": "ff720f23d8c2b8ad1965b620f6c9b72dd517c28244dbd1b101c778280cc50acf" }, "downloads": -1, "filename": "SuperWires-0.9.2.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "3da18c26e382995f81f54d9616f98026", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 17106, "upload_time": "2015-05-12T03:50:38", "url": "https://files.pythonhosted.org/packages/6b/c5/d043f3a6e83b6cb79bcddb1a3d736e872e8439797eb9ba83f4321df222f2/SuperWires-0.9.2.linux-x86_64.tar.gz" }, { "comment_text": "", "digests": { "md5": "cb61eaee13843aca14ad0e681ecf2a46", "sha256": "a80d1a0f04c6f4bbbde2093eed851caa05b7796bd72455ee01c5a16adb038f79" }, "downloads": -1, "filename": "SuperWires-0.9.2-py2.7.egg", "has_sig": false, "md5_digest": "cb61eaee13843aca14ad0e681ecf2a46", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 19637, "upload_time": "2015-02-01T04:27:04", "url": "https://files.pythonhosted.org/packages/f5/9c/7d358d42cbd109cf3d4e89b23332a72315383af3f79a8950454127ff705c/SuperWires-0.9.2-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "379aeb9aa6d5a9e9e3439376477712bc", "sha256": "1020c21144d09b3cb8bebfcbcbaf383cad4c55ca8fdefe455a3b445bcb11f2e7" }, "downloads": -1, "filename": "SuperWires-0.9.2.win32.exe", "has_sig": false, "md5_digest": "379aeb9aa6d5a9e9e3439376477712bc", "packagetype": "bdist_wininst", "python_version": "any", "requires_python": null, "size": 208804, "upload_time": "2015-02-01T04:29:34", "url": "https://files.pythonhosted.org/packages/95/fa/68d688ddf6090d2e1069d106fcac4124ddd5cdf4353aec54883b0aeb300f/SuperWires-0.9.2.win32.exe" }, { "comment_text": "", "digests": { "md5": "95ac7de903b5efc5cb825ae6be6172ac", "sha256": "e0d6459f997480dc4f6fd3710fbb6ebb76d9e9a33516eadc0660ece50abe86c0" }, "downloads": -1, "filename": "SuperWires-0.9.2.zip", "has_sig": false, "md5_digest": "95ac7de903b5efc5cb825ae6be6172ac", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13327, "upload_time": "2015-02-01T04:26:00", "url": "https://files.pythonhosted.org/packages/b4/b1/d61009526f7ab0bc5ac5a5af230b93bcd13736a722c057d4e12e6162b77f/SuperWires-0.9.2.zip" } ], "0.9.3": [ { "comment_text": "built for Linux-3.16.0-37-generic-x86_64-with-glibc2.4", "digests": { "md5": "7887d29c1bb4e7f8cde2ed599bb797f8", "sha256": "6213c096b9a2cf8d20bf1f26b751743097e57a0fcb25a527b1f224c1e2ccaab5" }, "downloads": -1, "filename": "SuperWires-0.9.3.linux-x86_64.tar.gz", "has_sig": false, "md5_digest": "7887d29c1bb4e7f8cde2ed599bb797f8", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 17110, "upload_time": "2015-05-12T03:51:10", "url": "https://files.pythonhosted.org/packages/8c/07/81846ec65bda745d3ada7f416f23b0831c15f3c809cfb12dbf092c439c21/SuperWires-0.9.3.linux-x86_64.tar.gz" } ], "0.9.4": [ { "comment_text": "", "digests": { "md5": "bb53ba43305ab63f21cedf559a83bb16", "sha256": "3f631ae4f1496bfa6fdc5d480918bc51e5ca100be093045e6654d0bb85f12be1" }, "downloads": -1, "filename": "SuperWires-0.9.4.tar.gz", "has_sig": false, "md5_digest": "bb53ba43305ab63f21cedf559a83bb16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9250, "upload_time": "2015-05-12T03:54:31", "url": "https://files.pythonhosted.org/packages/08/a3/73a4342f8aa8bd501c72589e30056c531adcdd2cfdad3731db7d301bc3d0/SuperWires-0.9.4.tar.gz" } ], "0.9.5": [ { "comment_text": "", "digests": { "md5": "71ebdb879ae34c28a48f7995bd72e556", "sha256": "e5d84e2bdae1a659058a9ff99d52400a6dd78a0a08e12ac8c553257e63b5c3ce" }, "downloads": -1, "filename": "SuperWires-0.9.5.tar.gz", "has_sig": false, "md5_digest": "71ebdb879ae34c28a48f7995bd72e556", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9178, "upload_time": "2015-05-12T03:55:01", "url": "https://files.pythonhosted.org/packages/a1/85/23b00b8efaeffc29559fa09acf102a784ec032de76dc9eff5263df8ec60b/SuperWires-0.9.5.tar.gz" } ], "0.9.6": [ { "comment_text": "", "digests": { "md5": "2f9116b749f15b06cc922aa644ede3c7", "sha256": "b651e237ca624604d0dbca76b8dd16a7692457361d24234dfef2bebc70431c60" }, "downloads": -1, "filename": "SuperWires-0.9.6.tar.gz", "has_sig": false, "md5_digest": "2f9116b749f15b06cc922aa644ede3c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9197, "upload_time": "2015-05-12T03:55:23", "url": "https://files.pythonhosted.org/packages/1e/01/0182d4e744f26442f41ae877722f5a2d72e5ab1d8f3bcbae4a14e0e0f65e/SuperWires-0.9.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "2f9116b749f15b06cc922aa644ede3c7", "sha256": "b651e237ca624604d0dbca76b8dd16a7692457361d24234dfef2bebc70431c60" }, "downloads": -1, "filename": "SuperWires-0.9.6.tar.gz", "has_sig": false, "md5_digest": "2f9116b749f15b06cc922aa644ede3c7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9197, "upload_time": "2015-05-12T03:55:23", "url": "https://files.pythonhosted.org/packages/1e/01/0182d4e744f26442f41ae877722f5a2d72e5ab1d8f3bcbae4a14e0e0f65e/SuperWires-0.9.6.tar.gz" } ] }