Brython-components is an easy implementation of brython's webcomonent
Project description
Brython-components
Brython-components is an easy implementation of brython's webcomonent.
Installation
Use the package manager pip to install.
pip install brip
brip install brython-components
Usage
'''python from brython_components impoprt defineElement, customElement
@defineElement("bold-italic") class BoldItalic(customElement): def connectedCallback(self): super().connectedCallback() print("connected callback", self)
def render(self):
return f"<b><i>{self.attrs['data-val']}</i></b>"
'''
License
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
Built Distribution
Close
Hashes for brython_components-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c3faede43d0e7c53dad221276695095e01f9bfeb22c549f28e75caba08707d3 |
|
MD5 | 00283781b41ca0040ee8c11edac856fc |
|
BLAKE2b-256 | 3732aa878f5390c6ab063aa6aec465fd7fc32dad6185ead82f98e6d0a84d06e6 |