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

Uploaded Source

Built Distribution

pygame_button-0.0.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pygame_button-0.0.2.tar.gz
  • Upload date:
  • Size: 2.7 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.2.tar.gz
Algorithm Hash digest
SHA256 9848c7a08a591ff12ea68f6657549da419386d1ba47a05cbc31e560e8b0a9abd
MD5 2c0486a386dccdc2c7981c0dc5d7ee1b
BLAKE2b-256 115f079d2492a1a06df7b918da8ee54c4ecbc701c2c6a5a625b53dfe3f457a4d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pygame_button-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4ecfe8ceebd2e493e1d169c1b62a04c258a14ebca500bd1efa65eceb8b2a3f
MD5 f971c71cf43959a41790df8a036de0f3
BLAKE2b-256 1eff8831a0e3de6c2a6dfefe39243ef51e85156bedb60f1e122d5a287b1fc435

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