Render basic html in python
Project description
mypygui
github repo: https://github.com/Dragon-KK/mypygui
documentation: https://dragon-kk.github.io/mypygui/
Dependencies
- python >= 3.10
- pillow >= 9.1.0
- tinycss2 >= 1.1.1
- webcolors >= 1.12
- colorama >= 0.4.4
- requests >= 2.28.1
html
Any element that isn't supported will be treated like a div
Supported elements
- input
- img
- span
NOTE: Only text inside span elements are shown
CSS
NOTE: currently some of the supported css properties may not work exactly according to the spec
A list of all supported css properties
background-color
border-width
border-bottom-left-radius
border-bottom-right-radius
border-top-left-radius
border-top-right-radius
border-style
border-color
color
display
position
z-index
visibility
box-sizing
top
right
bottom
left
height
width
max-heigth
max-width
min-height
min-width
font-family
font-size
font-weight
font-variant
margin-bottom
margin-left
margin-right
margin-top
padding-bottom
padding-left
padding-right
padding-top
transform-origin-x
transform-origin-y
overflow-x
overflow-y
Script
All scripts will be executed globally Some dom apis will be given to the scripts
<py-script src="./definitions.py"/>
<py-script src="./myscript.py"/>
eg: myscript.py
document.get_element_by_id('my-elem')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mypygui-0.0.0.12.tar.gz
(50.2 kB
view details)
Built Distribution
File details
Details for the file mypygui-0.0.0.12.tar.gz
.
File metadata
- Download URL: mypygui-0.0.0.12.tar.gz
- Upload date:
- Size: 50.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7cc2b9cb9bf6f8863732b0be4ce73fe26b0ae8f3617ca1b178cc5036a680bd1 |
|
MD5 | 6304879b6fbb78311f9152545a1719fd |
|
BLAKE2b-256 | 21fcae4bc85c22255b8d0b0da5ff3a4a2b1e2cb36a77cde3bf5da235c09c0f28 |
File details
Details for the file mypygui-0.0.0.12-py3-none-any.whl
.
File metadata
- Download URL: mypygui-0.0.0.12-py3-none-any.whl
- Upload date:
- Size: 67.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0011f255d756d74a559014dcdeabe9f998ff2e9149a32f43a93f87c15e91ccc1 |
|
MD5 | 0f11477afa4db82fd6f08ccd406e5279 |
|
BLAKE2b-256 | 3eac88e2d163468e4e786ee1dbb5ad015baafa445e5d9f77944a9f2378240b68 |