Skip to main content

py-GameUI

A Python package to use GUI Widgets like Button, Textinput & Slider in pygame.

Install using:

pip install py-GameUI

Documentation

You could check out the docs at https://aman333nolawz.github.io/py-GameUI/

Usage

import pygame

import py_GameUI

W, H = 600, 600
screen = pygame.display.set_mode((W, H))

elements = [
    py_GameUI.Button(
        [10, 10, 100, 100],
        text="Hello world",
        function=lambda: print("You clicked on the button"),
    ),
    py_GameUI.Input_box([10, 150, 150, 20]),
    py_GameUI.Slider(10, 210, 10, 30),
]

while True:
    screen.fill("#1c1c1c")
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            pygame.quit()
            exit()
        for element in elements:
            element.events(event)

    for element in elements:
        element.draw(screen)
    pygame.display.flip()

Metadata

Release files for py-GameUI 1.0.8

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

Source distribution (sdist)

Source distribution for py-GameUI 1.0.8
File Size Uploaded
py-GameUI-1.0.8.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for py-GameUI 1.0.8
File Interpreter ABI Platform
py_GameUI-1.0.8-py3-none-any.whl Python 3 none any Details

Total release size: 12.3 kB

Release files / py-GameUI-1.0.8.tar.gz

Download URL py-GameUI-1.0.8.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
396c4fb1135465dd3c377bc64a5f01c20eb65de1d0a436ab41c3dc0bada4798b
BLAKE2b-256 checksum
How to use checksums
b85bf91a0d9d81cae33c8c464a3f3b27fb43579faaf9cc7d835d622d6435f0e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

Release files / py_GameUI-1.0.8-py3-none-any.whl

Download URL py_GameUI-1.0.8-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
395766e311b90bc203a06a1bac19630b2fd739f2b04c7f328a2ce2ec17912a7f
BLAKE2b-256 checksum
How to use checksums
1e42ef40ec18be4b6aad9f0240f66964d6694d8ebc02e6a4e1635dd03bbb3340
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.0

Release history Release notifications | RSS feed

This release

1.0.8 This release

2 release files

1.0.7

2 release files

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