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.

Installation

pip install pygame_button

Usage

See example

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.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

pygame_button-0.0.3-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygame_button-0.0.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.8

File hashes

Hashes for pygame_button-0.0.3.tar.gz
Algorithm Hash digest
SHA256 471fd63db8cf9d0acc23c974cf1b119eadacb7c0afd07ef4531c6bc03863f722
MD5 99190cd55d3543245fa9585b24f41a74
BLAKE2b-256 3eeafeee321bd7ef860b8d61c708b59ad963f75862e97ad0c915360a3e4d98a0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygame_button-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.12 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.6 CPython/3.10.8

File hashes

Hashes for pygame_button-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 716689552beb3c40c2adf690cdee8bfd42348e8faa9f9adc9f7565e20eec9a8e
MD5 5a992726c1fc3e346bbfe749194d2ec2
BLAKE2b-256 038235111458eb091f40ee3373402d856aebbd3d1fc6b2fcff9ff6edd6341d2e

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