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.
Installation
pip install pygame_button
Usage
See example
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.3.tar.gz
(2.6 kB
view hashes)
Built Distribution
Close
Hashes for pygame_button-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 716689552beb3c40c2adf690cdee8bfd42348e8faa9f9adc9f7565e20eec9a8e |
|
MD5 | 5a992726c1fc3e346bbfe749194d2ec2 |
|
BLAKE2b-256 | 038235111458eb091f40ee3373402d856aebbd3d1fc6b2fcff9ff6edd6341d2e |