This release is a pre-release and may not be stable for production use.
Pygame GUI
What is it ?
This librairy aims to provide simple widget to improve pygame applications like buttons, text, textboxes or math text widgets. There is also some goemetric shapes, like rectangle or bezier curves.
Dependancies
pygame : This library is fully based on pygame, so you must have it installed.
(optionnal) * latex : you must avec latex install if you want to use the LaText widget (latex and dvipng accessible in path)
Installation
You can install it with pip and pypi easily by :
pip install -U PygameGUILib
or via git and pip :
pip install -U git+https://github.com/ddorn/GUI.git@release#egg=GUI
Widgets
Actually there is a fex widgets in the library. I’ll try to maintain this list, but I’m sure I’ll forget, so there is MORE than that.
Texts :
SimpleText
LaText
InLineInputBox
InLinePassBox
Buttons :
Button
IconButton
SlideBar
Around that, there is a lot of helping objects, like Font, colors, V2 and Separator (some vector things), FPSIndicator, FocusSelector…
Use
Bases
Every widget has a pos, a size and an anchor, the three can be harcoded or a callback function with no parameters. The pos and the size defines a pygame.Rect where the widget is. The posis per default the center of the widget, but you can change this behavior by giving an other anchor, like TOPLEFT.
Limitations
As always with pygame, do not try to make too big apps with a lot of changing texts or with too big protions of the screen that are too often redrawn or it can lag a bit.
Help and todo list
You’re welcome !
How can you help ?
Todos :
A Text class to make texts that goes on more lines and with wrapping.
A TextBox, to input multi line text
A RichText to make text with differents inner colors/size/font/styles
Something like lists
Switch class : Nice looking ON/OFF button
Some geometry function to draw curves, grids and manipulate line, polygons
This is absolutly not an ordered list, they will come as I have nice looking and useable classes !
Cool projects with this library
**Crabes** : a simulation too for a TFJM² problem
Your project !
Examples at the and of each file can also give you a lot of samples of how to use this library :) There is also a folder full of example that you will apreciate !
Metadata
Release files for PygameGUILib 0.4a6
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 | Actions |
|---|---|---|---|---|
| PygameGUILib-0.4a6.tar.gz | 791.2 kB | Without provenance | Details for PygameGUILib-0.4a6.tar.gz |
Release files / PygameGUILib-0.4a6.tar.gz
| Download URL | PygameGUILib-0.4a6.tar.gz |
|---|---|
| Size | 791.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
805ca51b55081965ee1fadd98dc0517e2d9077f556d949ce7bdc64036f737e42
|
|
BLAKE2b-256 checksum How to use checksums |
a64b8abb19d9b53a2359e962a1830643d2149f243475c9d57c384aee333af91f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for PygameGUILib 0.4a6
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.