A very simple button class for pygame
Project description
pygame_button
A very simple button class for pygame. Supports different background and font colors for idle, hover, and clicked modes. Can be linked to a function and set to either run on down-click, or click release.
It is stylable to a degree (see example). The easiest way to do this is to create a style dictionary and then pass this with the **kwarg unpacking syntax.
Many things that could still be added.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygame_button-0.0.1.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pygame_button-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da61c4f3cd14a68a7a1dd5a7fb0fc8de62d805a865eaab285806b2462ffa1588 |
|
MD5 | 4a76e5e018b96346a8a70b55f6867f7f |
|
BLAKE2b-256 | bf33329c8dc513af5424202dfc3c349d4832dbe3c21cee4b8f87f5e1c81ebb0a |