Skip to main content

EasyPygameWidgets

An easy-to-use UI widget library for pygame, featuring customizable buttons, sliders, text entries, screen management and much more.

Features

  • easy integration: seamlessly works with existing pygame projects
  • customizable widgets: nearly infinite styling options for colors, sounds, cursors, and more
  • screen management: built-in screen system for creating different GUIs

Installation

Windows

pip install easypygamewidgets

Linux/macOS

python3 -m pip install easypygamewidgets

Quick Start

import pygame

import easypygamewidgets as epw

pygame.init()
window = pygame.display.set_mode((800, 600))
clock = pygame.time.Clock()

# link the pygame window
epw.link_pygame_window(window)

# create a button
button = epw.Button(text="Click Me!")
button.place(300, 100)

# create a slider
slider = epw.Slider(text="Volume", start=0, end=100, auto_size=False, width=300)
slider.place(300, 200)

# create a text entry
entry = epw.Entry(placeholder_text="Type here...", auto_size=False, width=250)
entry.place(300, 400)


def draw():
   window.fill((30, 30, 30))


# main game loop
running = True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running = False

        # handle widget events
        epw.handle_event(event)

    # handle special widget events
    epw.handle_special_events()

    # draw all widgets
    epw.flip(draw)

    pygame.display.update()
    clock.tick(60)

pygame.quit()

Documentation

We have an online documentation.

Requirements

  • python
  • pygame (the community version pygame-ce)
  • requests (for update checking in background once)

I recommend using the latest version of libraries.

Contributing

Contributions are welcome! Please feel free to submit a pull request. Of course, you will be mentioned :)

Contributing rules

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support


Made with ❤️ by Phil Munzke

Metadata

Release files for easypygamewidgets 26.51.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for easypygamewidgets 26.51.2
File Size Uploaded Provenance Actions
easypygamewidgets-26.51.2.tar.gz 773.2 kB Without provenance Details for easypygamewidgets-26.51.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for easypygamewidgets 26.51.2
File Interpreter ABI Platform Actions
easypygamewidgets-26.51.2-py3-none-any.whl Python 3 none any Details for easypygamewidgets-26.51.2-py3-none-any.whl

Total release size: 1.6 MB

Release files / easypygamewidgets-26.51.2.tar.gz

Download URL easypygamewidgets-26.51.2.tar.gz
Size 773.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a9a9ac3c9e2090e39f1183a68cb6b9bf6c2e07c252e19b15a7adfa157ab9c5c8
BLAKE2b-256 checksum
How to use checksums
c65047e904ee0a0e97d727fd91999c9686fa020a29065c31b59ed5501b1bcdb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Release files / easypygamewidgets-26.51.2-py3-none-any.whl

Download URL easypygamewidgets-26.51.2-py3-none-any.whl
Size 784.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e813f23eadc97eefb09666cce979176e0ed2b442c5021a1a4f1423c6f9db62f0
BLAKE2b-256 checksum
How to use checksums
1ed9dda4c73c176647e8498797528a9618eef4194ecd18fa9a67035d98ff8ad9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.1

Security for easypygamewidgets 26.51.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

26.51.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page