=========
**A Button UI Element for Pygame**
http://inventwithpython.com/blog/2012/10/30/creating-a-button-ui-module-for-pygame/
Pygbutton is a simple button UI that you can add to your Pygame programs.
You can download a few example programs here: http://inventwithpython.com/pygbutton_src.zip
The code to implement it is fairly basic:
import pygbutton
buttonObj = pygbutton.PygButton((50, 50, 60, 30), 'Button Caption')
while True: # main game loop
for event in pygame.event.get(): # event handling loop
if 'click' in buttonObj.handleEvent(event):
pass # Do stuff in response to button click here.
buttonObj.draw(DISPLAYSURFACE) # where DISPLAYSURFACE was the Surface object returned from pygame.display.set_mode()
The full explanation of the code and how it was written can be found in the aboved linked blog post.
Metadata
Release files for Pygbutton 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Pygbutton-0.9.0.zip | 12.4 kB | Without provenance | Details for Pygbutton-0.9.0.zip |
Security for Pygbutton 0.9.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.