Skip to main content

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


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 details)

Uploaded Source

Built Distribution

pygame_button-0.0.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file pygame_button-0.0.1.tar.gz.

File metadata

  • Download URL: pygame_button-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pygame_button-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6657b988a8659cd63443f5309c4e99f7d0c02f1bfc1d35d87624f903fd81f83f
MD5 3f71455d97585e22b58846c212a330c2
BLAKE2b-256 c9e157b57acd3cce13d544461144d6a0230c74d2e17c7faff34fe3a389227c2e

See more details on using hashes here.

File details

Details for the file pygame_button-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pygame_button-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for pygame_button-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 da61c4f3cd14a68a7a1dd5a7fb0fc8de62d805a865eaab285806b2462ffa1588
MD5 4a76e5e018b96346a8a70b55f6867f7f
BLAKE2b-256 bf33329c8dc513af5424202dfc3c349d4832dbe3c21cee4b8f87f5e1c81ebb0a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page