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.1.tar.gz
(8.1 kB
view details)
Built Distribution
File details
Details for the file tweakpane-0.0.1.tar.gz
.
File metadata
- Download URL: tweakpane-0.0.1.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.23.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 712d152ac21141bcfe3314a7d27f74bcf61734db11b79326c0a0febcdc206ee1 |
|
MD5 | fd67a7b5eb83cc1254462a9568807584 |
|
BLAKE2b-256 | 7cf54f67f5e9aafbf756bb1152b66f30fd2eb26e5077c6db8af0ad0de89b394a |
File details
Details for the file tweakpane-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: tweakpane-0.0.1-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 | 8999a7bac15dc59075366f98d4229950612878589b377912d7da6c13ba8841f1 |
|
MD5 | d6e7525509ef54fbfe91f137619c1a1c |
|
BLAKE2b-256 | 6c7b234bc3d0353dedd81ada264db51a97bc62a4c48fda104c49b7b0987b8842 |