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.2.tar.gz
(2.7 kB
view hashes)
Built Distribution
Close
Hashes for pygame_button-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0d4ecfe8ceebd2e493e1d169c1b62a04c258a14ebca500bd1efa65eceb8b2a3f |
|
MD5 | f971c71cf43959a41790df8a036de0f3 |
|
BLAKE2b-256 | 1eff8831a0e3de6c2a6dfefe39243ef51e85156bedb60f1e122d5a287b1fc435 |