Skip to main content

WebGUI

A simple Python GUI framework that uses HTML as the interface.

WebGUI lets you make Python applications with a web browser as the GUI without needing to write JavaScript.

Installation

pip install webgui

Basic Example

import webgui
import time

webgui.init()

webgui.send("index.html")

while webgui.running():

	if webgui.button("say hello").clicked:
		print("Hello!")

	time.sleep(0.05)
<!DOCTYPE html>
<html>

<body>

<h1>My App</h1>

<p>Hello!</p>

<button name="say hello">Say Hello</button>

</body>

</html>

Getting Input

You can also ask the user for text:

name = webgui.get_input("What's your name?")

print(name)

The browser displays an input box and returns what the user entered.

Why WebGUI?

WebGUI is designed to be simple.

You write your interface using HTML and control your application using Python.

You don't need to write JavaScript or deal directly with HTTP communication.

Features

  • HTML-based GUI
  • Python controls the application
  • Automatic browser opening
  • Simple button handling
  • Text input
  • Multiple HTML pages
  • No JavaScript required in your application

License

See the LICENSE file.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

webgui_py-0.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

webgui_py-0.1.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file webgui_py-0.1.0.tar.gz.

File metadata

  • Download URL: webgui_py-0.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for webgui_py-0.1.0.tar.gz
Algorithm Hash digest
SHA256 97b8c06567a83522cb501f43eaee86383d6b55e3f43df4a2eaaff768e4814883
MD5 dc84f592c66350d425127ea04e65f7de
BLAKE2b-256 ff8918648884521584c82bfb27334a4c1165ff70b31af41b7221d9711dbc47ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for webgui_py-0.1.0.tar.gz:

Publisher: publish.yml on gordoprime00/webgui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file webgui_py-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: webgui_py-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for webgui_py-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e606af4c5cf2917e80facc68c6ede5f336643dbfa04bdfd68747669582c97a10
MD5 e881ea4b2ba9de2a0ab477c76cf6788a
BLAKE2b-256 dd4fa4d07e135fb4f450252bed5131b2efcc6bd9626345461d2110e61c7c2f9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for webgui_py-0.1.0-py3-none-any.whl:

Publisher: publish.yml on gordoprime00/webgui

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.0 This release

2 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