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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97b8c06567a83522cb501f43eaee86383d6b55e3f43df4a2eaaff768e4814883
|
|
| MD5 |
dc84f592c66350d425127ea04e65f7de
|
|
| BLAKE2b-256 |
ff8918648884521584c82bfb27334a4c1165ff70b31af41b7221d9711dbc47ca
|
Provenance
The following attestation bundles were made for webgui_py-0.1.0.tar.gz:
Publisher:
publish.yml on gordoprime00/webgui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webgui_py-0.1.0.tar.gz -
Subject digest:
97b8c06567a83522cb501f43eaee86383d6b55e3f43df4a2eaaff768e4814883 - Sigstore transparency entry: 2682751420
- Sigstore integration time:
-
Permalink:
gordoprime00/webgui@06402aaaa660f0db4a050b0d1a46b0af0930fed3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/gordoprime00
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@06402aaaa660f0db4a050b0d1a46b0af0930fed3 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e606af4c5cf2917e80facc68c6ede5f336643dbfa04bdfd68747669582c97a10
|
|
| MD5 |
e881ea4b2ba9de2a0ab477c76cf6788a
|
|
| BLAKE2b-256 |
dd4fa4d07e135fb4f450252bed5131b2efcc6bd9626345461d2110e61c7c2f9b
|
Provenance
The following attestation bundles were made for webgui_py-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on gordoprime00/webgui
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
webgui_py-0.1.0-py3-none-any.whl -
Subject digest:
e606af4c5cf2917e80facc68c6ede5f336643dbfa04bdfd68747669582c97a10 - Sigstore transparency entry: 2682751639
- Sigstore integration time:
-
Permalink:
gordoprime00/webgui@06402aaaa660f0db4a050b0d1a46b0af0930fed3 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/gordoprime00
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@06402aaaa660f0db4a050b0d1a46b0af0930fed3 -
Trigger Event:
push
-
Statement type: