GUI extension for the Python game library Arcade https://arcade.academy/
Project description
GUI Library for Python Arcade
This project targets to offer simple to complex ui elements to use in games and software written with the Python Arcade library.
Some UI components were copied over to adjust and fix them.
This project could also end up in a PR to integrate within Arcade.
Basic Components
UIView
Central class to manager the ui components.
Converts on_
callback functions into events, so that UIElements
just have to contain one method to interact with user input.
UIElement
A general interface of an UI element.
Examples
Examples providing an overview of features, there will be dedicated documentation soon.
Screenshots
Features for first release
- UILabel
- Align with UITextInput
- UIButton
- Focused element tracked
- ID reference system for UIElements
- CI/CD
- UITextInput
- Basic setup
- Scroll text with cursor
- Set max length
- Emit event on ENTER
- UIElements emit own UIEvents
- UIButton
- UITextInput
- UIImageButton
- UITexturedInputBox
- FlatButtons (https://codepen.io/maziarzamani/full/YXgvjv)
- UITextArea
- Theme support
- Provide different standard themes for flat buttons
- Add documentation and doc strings (sphinx)
- release notes
- setup readthedocs
- track new features and issues in Github
Chores
- harmonize constructors
x, y
vscenter_x, center_y
- figure out, how
UIView.find_by_id
does not produce typing warnings - improve docs
- fix reference to examples
- include screenshots (at least one)
- make 3D Button more realistic, or change to flat buttons
- support Python 3.7
- test examples render the expected screen
Background information and other frameworks
Reference Pygame GUI projects
- ThorPy
- Phil's pyGame Utilities
- OcempGUI
- PyGVisuals
- Pygame GUI
- Homepage
- Examples
- QuickStart Example
- Concept
- UIManager manages every interaction, new elements get the UIManager on creation
- Elements create events and hook into pygames event system
- Themes can be read from JSON files
Ideas
- Create own implementation
- Build adapter for PyGame GUI
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
Built Distribution
File details
Details for the file arcade_gui-0.1.0a3.tar.gz
.
File metadata
- Download URL: arcade_gui-0.1.0a3.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8e896766cff89a18da7ef0545ae6924db23d15045e18a702f3bf3f2e7046b329 |
|
MD5 | d6002a6b3e4e3f7181e63abaf593f651 |
|
BLAKE2b-256 | 04045bb247ceb139cdb749e1d3cc7fbf04a36ec184db5ea5a9fe61709f215471 |
File details
Details for the file arcade_gui-0.1.0a3-py3-none-any.whl
.
File metadata
- Download URL: arcade_gui-0.1.0a3-py3-none-any.whl
- Upload date:
- Size: 9.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.5 CPython/3.8.1 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97ab7328196977b65c8ac11f36ee8686b91f6e214876d8523d96eadd8aafd842 |
|
MD5 | 11a59644f47ea35b197d166d7aef5b20 |
|
BLAKE2b-256 | 24486d3acad72fccc093e88e729c241910943bcf89b01c7fcf6a394392ff5369 |