Python bindings for Tweakpane UI
Project description
ipytweakpane
IPython/Jupyter notebooks module for Tweakpane UI.
installation
pip install tweakpane
example
import tweakpane
pane = tweakpane.Pane()
pane.add_input("checkbox", True)
pane.add_input("number", 10.00)
pane.add_input("slider", 10, min=0, max=200)
with pane.folder(title="Folder") as f:
f.add_input("color", dict(r=255, g=200, b=100))
f.add_input("text", "Tweakpane")
pane
Inputs are dynamically added to the pane
as named
traitlets and can be subscribed
to or updated like any other
ipywidget
.
# subscribe to changes
pane.observe(lambda change: ..., names=[
"checkbox",
"number",
"slider",
"color",
"text",
])
# update pane programatically
pane.checkbox = False
pane.text = "Some other text"
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tweakpane-0.0.0.tar.gz
(9.4 kB
view details)
Built Distribution
File details
Details for the file tweakpane-0.0.0.tar.gz
.
File metadata
- Download URL: tweakpane-0.0.0.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 06d50193dd2020f454c9e8bf22d537158c6b3b03ec81d0794c272e11b45f53d9 |
|
MD5 | 77b3c651c6526f0026d4160dcfd163e3 |
|
BLAKE2b-256 | dc31f6e4d8ff27d2bccfce7f917f4b3090f4ede3cbfee6c33bb17001d63d632e |
File details
Details for the file tweakpane-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: tweakpane-0.0.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8ee033af7a44db34199e4ee0ae3c131012a2f2b5c4a7dc02c2f59a23ea31ff8 |
|
MD5 | 900d581cce8fc181c1e13d79a69e9c56 |
|
BLAKE2b-256 | 25993584cc39dd65c9ab15b9d6687100abb45215019e6439e99b6af65ee54611 |