Simple UI Library for pygame
Project description
PyGameUI Is a PyGame UI Library that adds simple UI for with the use of PyGame
Setting up a simple setup:
in your Main Class write:
if __name__ == "__main__":
pygameui.setup(YourMainScene())
and also make a Script and add a class to that script in my Case "YourMainScene"
class YourMainScene(PyGameScene):
def update(self):
# Write your Code here that Should only run when the Window is updated
def render(self,screen,events):
# Write your Rendering Code here
now lets say you want to add a Button then write a snippet like this in update:
self.drawables.append(Button("Here Goes the Button Text",
(Here Goes a tuple of 2 ints that is the center of the button),
(Here Goes a tuple of 2 ints that is the size of the button),
heres a reference for what should happen when the button gets clicked(lamda supported),
[Heres a list of values that should be passed onto the on_clicked methode]))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
simple_pygame_ui-0.1.1.tar.gz
(12.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file simple_pygame_ui-0.1.1.tar.gz.
File metadata
- Download URL: simple_pygame_ui-0.1.1.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd31958b65ad48d01328419cdfe0bf05a2ef01081b49f256bdf7cbf12e0502c3
|
|
| MD5 |
4bca0b3cb4a8622570fe0bc73abda78d
|
|
| BLAKE2b-256 |
5bb380104394300602bafc67dcab2ff90ed0f59f44c5496d40132972118f6a52
|
File details
Details for the file simple_pygame_ui-0.1.1-py3-none-any.whl.
File metadata
- Download URL: simple_pygame_ui-0.1.1-py3-none-any.whl
- Upload date:
- Size: 22.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1167e2bc217c17e231b387ed93d12819044eab9c9024b42ca4abd528b2cf0d8a
|
|
| MD5 |
b5268ce1b27899203ddba79d7f4e1bff
|
|
| BLAKE2b-256 |
03928fe0c0705a9a24570991ddf0274f5f0db3c3da343a8bc7551e29e25d8447
|