Python bindings for Tweakpane UI
Project description
(ipy)tweakpane
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"
release
git tag -a vX.X.X -m "X.X.X"
git push --follow-tags
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.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file tweakpane-0.1.0.tar.gz
.
File metadata
- Download URL: tweakpane-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb122e63f73a7850805acccb5582adf254a881e7bc6aab34c3ad18d4b7a864cc |
|
MD5 | 90f4606329ddec9854da34db61e627a7 |
|
BLAKE2b-256 | 71fc9b42a5091c3b826883844679c941485a33bb17d6f714cbb989a6f9c3a437 |
File details
Details for the file tweakpane-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: tweakpane-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.24.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a880d18314e3bb5cde87d9879b476138a518d4444b217253b51902fbcd5fdfc |
|
MD5 | cf6236f39f1e4b9f22aa31c1a16344db |
|
BLAKE2b-256 | 1094a7efdff9da9682260c56d6ab2ce5017c0d0f74338dda94fbd7795c630439 |