Guipy
Pygame UI Library built by Casey (@caseyhackerman) and Jason
Installation
pip install guipylib
or with poetry
poetry add guipylib
Components
Button
Dropdown
Live Plot
Plot
Slider
Switch
Textbox
Example
import pygame
import colorsys
from guipy.components.slider import Slider
from guipy.manager import GUIManager
from guipy.utils import *
winW = 1280
winH = 720
root = pygame.display.set_mode((winW, winH))
man = GUIManager()
mySlider = Slider(height=50, width=500, thickness=5, radius=12, initial_val=0.4)
mySlider2 = Slider(height=50, width=500, thickness=5, radius=12, initial_val=0)
mySlider3 = Slider(height=50, width=500, thickness=5, radius=12, initial_val=0.5)
mySlider4 = Slider(height=50, width=500, thickness=5, radius=12, initial_val=0.5)
man.add(mySlider, (0, 25))
man.add(mySlider2, (0, 75))
man.add(mySlider3, (0, 125))
man.add(mySlider4, (0, 175))
running = True
while running:
events = pygame.event.get()
for event in events:
if event.type == pygame.QUIT:
running = False
root.fill(DARK_GREY)
color = tuple(
i * 255
for i in colorsys.hls_to_rgb(mySlider2.val, mySlider3.val, mySlider4.val)
)
center = (winW // 2, winH // 2)
r = 10 + mySlider.val * 100
pygame.draw.circle(root, color, center, r)
pygame.draw.circle(root, BLACK, center, r, 3)
man.update(pygame.mouse.get_pos(), events, root)
pygame.display.update()
Documentation
Check out some helpful guides and API references here
Metadata
Release files for guipylib 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| guipylib-0.3.1.tar.gz | 10.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| guipylib-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.6 kB
Release files / guipylib-0.3.1.tar.gz
| Download URL | guipylib-0.3.1.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
98289c28433a3ff0457bbf2d6705a7b3138cf68fb8a2c909cfcef367065b7756
|
|
BLAKE2b-256 checksum How to use checksums |
1801e644f567bf84b52b1824bc8f50c4bd6759dab5f855ede1d49fa5cb070089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-1019-azure
|
Release files / guipylib-0.3.1-py3-none-any.whl
| Download URL | guipylib-0.3.1-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
855d3679ad61b56244f56224196098e540128e5f3167361dd2b1f47780955a70
|
|
BLAKE2b-256 checksum How to use checksums |
3c3a74de85efe3a1434427a3a0982c8c91ab74c196756139ea67c92df142e418
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.1 CPython/3.10.6 Linux/5.15.0-1019-azure
|
Security for guipylib 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.