{ "info": { "author": "Al Sweigart", "author_email": "al@inventwithpython.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: MacOS X", "Environment :: Win32 (MS Windows)", "Environment :: X11 Applications", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.1", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Pygbutton\r\n=========\r\n\r\n**A Button UI Element for Pygame**\r\n\r\nhttp://inventwithpython.com/blog/2012/10/30/creating-a-button-ui-module-for-pygame/\r\n\r\nPygbutton is a simple button UI that you can add to your Pygame programs.\r\n\r\nYou can download a few example programs here: http://inventwithpython.com/pygbutton_src.zip\r\n\r\nThe code to implement it is fairly basic:\r\n\r\n import pygbutton\r\n buttonObj = pygbutton.PygButton((50, 50, 60, 30), 'Button Caption')\r\n while True: # main game loop\r\n for event in pygame.event.get(): # event handling loop\r\n if 'click' in buttonObj.handleEvent(event):\r\n pass # Do stuff in response to button click here.\r\n buttonObj.draw(DISPLAYSURFACE) # where DISPLAYSURFACE was the Surface object returned from pygame.display.set_mode()\r\n\r\nThe full explanation of the code and how it was written can be found in the aboved linked blog post.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/asweigart/pygbutton", "keywords": "pygame button gui ui", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "Pygbutton", "package_url": "https://pypi.org/project/Pygbutton/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/Pygbutton/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/asweigart/pygbutton" }, "release_url": "https://pypi.org/project/Pygbutton/0.9.0/", "requires_dist": null, "requires_python": null, "summary": "A button GUI module for Pygame.", "version": "0.9.0" }, "last_serial": 1290527, "releases": { "0.9.0": [ { "comment_text": "", "digests": { "md5": "d009ab78591665971b693fe3bcbcd0b7", "sha256": "d8f8570f6f4a23f9312ee89cfd8f9b23a59c169b692122ec408ea8b62cbd7318" }, "downloads": -1, "filename": "Pygbutton-0.9.0.zip", "has_sig": false, "md5_digest": "d009ab78591665971b693fe3bcbcd0b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12428, "upload_time": "2014-10-31T13:30:05", "url": "https://files.pythonhosted.org/packages/a2/a7/dd46772769c4fd377f450ce2b00d18811e40a0d8987e8fb42072723a5521/Pygbutton-0.9.0.zip" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d009ab78591665971b693fe3bcbcd0b7", "sha256": "d8f8570f6f4a23f9312ee89cfd8f9b23a59c169b692122ec408ea8b62cbd7318" }, "downloads": -1, "filename": "Pygbutton-0.9.0.zip", "has_sig": false, "md5_digest": "d009ab78591665971b693fe3bcbcd0b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12428, "upload_time": "2014-10-31T13:30:05", "url": "https://files.pythonhosted.org/packages/a2/a7/dd46772769c4fd377f450ce2b00d18811e40a0d8987e8fb42072723a5521/Pygbutton-0.9.0.zip" } ] }