Layerex / pygame_button

Just a simple pygame button.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Just a simple pygame button.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%