Skip to main content

A package for creating UI elements in pygame

Project description

pygame-ui-toolkit

pygame-ui-toolkit is a library for easily creating UI elements with Pygame.

Features

pygame-ui-toolkit offers the following features:

UI Elements:

These are the core user input elements that can be created using this library.

Buttons

  • Rectangle buttons
  • Bordered rectangle buttons
  • Circle buttons
  • Bordered circle buttons
  • Polygon buttons
  • Bordered polygon buttons
  • All of the above with text

Sliders

  • Horizontal sliders
  • Vertical sliders

Text Inputs

  • All buttons (other than polygon buttons) can be used as text inputs

Toggles

  • Tick box
  • Tick box with text to the left
  • Tick box with text to the right

Dropdown Menus

  • Rectangle dropdowns
  • Bordered rectangle dropdowns
  • Circle dropdowns
  • Bordered circle dropdowns

Text Boxes

  • All button types can be used as a text box

Presets:

These are additional functionalities added on top of the core UI elements.

Button

  • Changing colour when hovered over or clicked on
  • Changing size when hovered over or clicked on

Slider

  • Automatically updating text that displays the current slider value

Installation

Cannot be completed until the package is ready to be added to PyPI.

Usage

Once installed, import the package into your project by entering the following at the top of your script.

import pygame_ui_toolkit

See below for additional information on how to use the package.

Docs

There is no official documentation for this package.

The scripts in the examples directory should show you how to use the package. They detail the creation and use of all core UI elements and the presets.

Docstrings and type hints have been included within the scripts within the src directory, which should outline what each function and class does alongside the kinds of arguments that should be passed into them.

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-ui-toolkit-0.0.2.tar.gz (19.9 kB view details)

Uploaded Source

Built Distribution

pygame_ui_toolkit-0.0.2-py3-none-any.whl (26.3 kB view details)

Uploaded Python 3

File details

Details for the file pygame-ui-toolkit-0.0.2.tar.gz.

File metadata

  • Download URL: pygame-ui-toolkit-0.0.2.tar.gz
  • Upload date:
  • Size: 19.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for pygame-ui-toolkit-0.0.2.tar.gz
Algorithm Hash digest
SHA256 87cc140df7207d45a5b864af9a3047d7597c37f7f9fe5aa22250d303a9a09abd
MD5 c6e529973344e9664966570e0eb5b8c3
BLAKE2b-256 fdc791dc2670f94570d21d479ed4c14c5853b0b0e1441deb5034e553a1b079f1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pygame_ui_toolkit-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f776e03461b739c309975ea52dfc7b0911d1880b12219311d4ecd02933cb49b4
MD5 4475b7910c9c3b710cdcc194186297a1
BLAKE2b-256 85bdf9c6eab258cac856679ed870a5e2e721f76dee338cb85c2738888ef7b86b

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