pygame-addons
Contains classes and functions to help make games and guis with pygame
Notes
I don't know what version of python is needed for this package to work.
Anywhere in the documentation where it says pg, it is referring to pygame.
This is mainly just a passion project/project to help future projects, but it would be nice if it had some use.
Features
Here's a list of features that are currently available in this package:
Classes
Examples of how to use these classes can be found in the examples folder.
Button
A class that creates a button that can be clicked on.
Parameters:
- pos - The position of the button
- size - The size of the button
- colour - The colour of the button
- text - The text that will be displayed on the button - Default: ""
- text_colour - The colour of the text - Format: str, tuple[int, int, int] or pg.Color - Default: pg.Color("white")
- font - The font of the text - Format: str, pg.font.Font or pg.font.SysFont - Default: "freesansbold"
- font_size - The size of the font - Default: 30
Input Field
A class that creates an input field that can be typed in.
Parameters:
- pos - The position of the input field
- size - The size of the input field
- colour - The colour of the input field
- active_colour - The colour of the input field when it is active
- background_text - The text that will be displayed when the input field is empty - Format: str or list - Default: ""
- font_colour - The colour of the text - Format: str, tuple[int, int, int] or pg.Color - Default: pg.Color("white")
- font - The font of the text - Format: str, pg.font.Font or pg.font.SysFont - Default: "freesansbold"
- font_size - The size of the font - Default: 30
- max_length - The maximum length of the text in the input field - Default: 10
Slider
A class that creates a slider that can be used to go through numbers.
Parameters:
- pos - The position of the slider
- size - The size of the slider
- colour - The colour of the slider
pos, size, colour: tuple[int, int, int] | pg.Color, border_colour: tuple[int, int, int] | pg.Color, min_value: int, max_value: int, start_value: int, border_size: int = 3, background_text: str = "", font: str | type[pg.font.Font] | type[pg.font.SysFont] = "freesansbold", font_size=25, font_colour: str | tuple[int, int, int] | pg.Color = pg.Color("white"))
Metadata
Release files for pgaddons 1.2.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 | Actions |
|---|---|---|---|---|
| pgaddons-1.2.1.tar.gz | 5.7 kB | Without provenance | Details for pgaddons-1.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pgaddons-1.2.1-py3-none-any.whl | Python 3 | none | any | Details for pgaddons-1.2.1-py3-none-any.whl |
Total release size: 13.7 kB
Release files / pgaddons-1.2.1.tar.gz
| Download URL | pgaddons-1.2.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b8e8732324e117dba0418d5fdf6aa9fbb15e6f9aad82f4aea3f6ee8b0eee2874
|
|
BLAKE2b-256 checksum How to use checksums |
f1d8a0fd7c36be3c40e54da823de1126d67fa2690f2028ce56dc0cb4beacc101
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / pgaddons-1.2.1-py3-none-any.whl
| Download URL | pgaddons-1.2.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
46b0e8d07a5540993610b2e4e10856b9cb76f542a9b863b4707082f1a04609fd
|
|
BLAKE2b-256 checksum How to use checksums |
1b0517cd1f499b4dd2d708a16f0f014e141dd563ed504faaf573bf03cbd60a4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for pgaddons 1.2.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.