Skip to content

PyGameUI

PygameUI Logo

A lightweight Python library that makes creating UI elements in Pygame quick and easy.

Version License

Short overview

PygameUI is a small Python library written in Python that makes it easier to create UI elements like buttons, texts, inputs, and more when using the Python library PyGame. The library also supplies the user with many optional features for customizing the UI elements.

(Hint: Feel free to ⭐star⭐ the repo on github!)

Documentation

Documentation in web form is available at https://trymbf.github.io/pygameui/

Documentation in markdown form is available in the docs folder of the repository.

You can also download the documentation as a PDF file from the releases page

Installation

Start by downloading the PyGameUI python file from the releases page.

Then place the PyGameUI file in the same folder as your project files.

gif of putting the file in the same folder

(See the getting started guide for more details)

Available Elements

  • Element The base class for all UI elements. It provides basic functionality such as setting position, drawing, and updating. Learn more!
  • Text A class for displaying text. It extends the Element class and adds text-specific attributes and methods. Learn more!
  • Image A class for displaying images. It extends the Element class and adds image-specific attributes and methods. Learn more!
  • Input A class for creating input fields. It extends the Text class and adds input-specific attributes and methods. Learn more!
  • Button A class for creating buttons. It extends the Element class and adds button-specific attributes and methods. Learn more!
  • DropDownMenu A class for creating dropdown menus. It extends the Element class and adds dropdown-specific attributes and methods. Learn more!
  • CheckBox A class for creating checkboxes. It extends the Element class and adds checkbox-specific attributes and methods. Learn more!
  • Table A class for creating tables. It extends the Element class and adds table-specific attributes and methods. Learn more!
  • ProgressBar A class for creating progress bars. It extends the Element class and adds progress bar-specific attributes and methods. Learn more!

Getting Help

Current Version

The current version of PygameUI is 2.2.1.

License

PygameUI is open-source software.