This repository contains examples and demonstrations of creating a GUI within the Pygame framework. These examples are designed to showcase various GUI components and interactions possible in Pygame.
This project was developed by a group of elementary and middle school students on the fishc.com.cn aka Fish C forum. Thereinto:
- @cjjJasonchen led the development
- @歌者文明清理员 (github: dddddgz) and @zhangchenyun (github: zcyyyyyyyyyy) for initial release on GitHub.
- Yuyou (people that registered accounts on fishc forum) has given great support to the development team.
For the same reason, there are so few GUIs for PyGame that you have to build wheels every time!
Development can be divided into the following parts:
- Discuss the development steps on the Fish C forum
- Developed by @cjjJasonchen
- Publish the source code on the Fish C forum for a wide range of Yuyou discussions.
- Improve based on the results of the discussion.
- Published on GitHub by @歌者文明清理员 (github: dddddgz) and @zhangchenyun (github: zcyyyyyyy).
- (Long-term planning) Published on the PyPI community.
- text-edit.py: Demonstrates a basic text editor with font selection and text input.
- complexd-chooser-box: An interface to choose any thing.
- push-button: An interface to choose a thing.
- scorll-bar: An simple scorll bar.
Clone this repository to your local machine using the following command:
git clone https://github.com/Zcyyyyyyyyyy/PygameGUI-examples.git
Navigate to the directory where you cloned the repo and you will find the various example scripts.
Before you can run these examples, ensure you have the following installed:
- Python 3.7.1+
- Pygame library You can install Pygame using pip if you don't have it already:
pip install -r requirements.txt
To run any of the example scripts, navigate to the appropriate directory in your terminal or command prompt and execute the python file. For example:
python example_script.py
Replace example_script.py
with the actual script you wish to run.
Contributions to this repository are welcome. Please fork the repository and create a pull request with your features, fixes, or enhancements.
This project is licensed under the MIT License - see the LICENSE file for details.
- All contributors and supporters of the Pygame community.
For any further questions or feedback, please open an issue on our repository or reach out directly to the repository maintainers.
We hope these examples help you to get a grip on building GUI applications with Pygame. Happy coding!