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.12.tar.gz
(13.3 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.12.tar.gz.
File metadata
- Download URL: simple_pygame_ui-0.1.12.tar.gz
- Upload date:
- Size: 13.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5559eb1ba4de7068f04de0b4f9ad446ae474c35c70bf6f6ccd9902cf3fe81daa
|
|
| MD5 |
8cec23413e11714f13e77fc0c9ebc10e
|
|
| BLAKE2b-256 |
eb5aee79bbe467b4276a5b8c5dc9e87b2154057164e870bfc928e121a36483b4
|
File details
Details for the file simple_pygame_ui-0.1.12-py3-none-any.whl.
File metadata
- Download URL: simple_pygame_ui-0.1.12-py3-none-any.whl
- Upload date:
- Size: 23.2 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 |
ea4b2fa9d37a1d44188a39e145d7aaa4514f8e58da37aa71e2f946016d72ca11
|
|
| MD5 |
ddaf9d53512edb05d4066d9027db17f6
|
|
| BLAKE2b-256 |
421ef4b3691c5c8f32125cd7573054d09d9a74f8ed8de86c4d2d9980f3cb7323
|