Skip to main content

Python bindings for Tweakpane UI

Project description

(ipy)tweakpane

PyPI License

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
example widget

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.2.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

tweakpane-0.2.0-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file tweakpane-0.2.0.tar.gz.

File metadata

  • Download URL: tweakpane-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for tweakpane-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c9101ed33ac816b7f4ea5c6f5da12d401c3f877fc0249d28d618573338809e7d
MD5 7bcfe6807a33f071518bd3ca33f2eeed
BLAKE2b-256 6fc4dc62a46e73d78116b2848eb49563440d6410029835fb7df819bd484ec9ba

See more details on using hashes here.

File details

Details for the file tweakpane-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: tweakpane-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for tweakpane-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a3d2ef4f64d337fb272a6323bc5baf08b042bdac61692d04c840ccfbee112d6
MD5 574a9294dbf2133ad01f8112735deb38
BLAKE2b-256 ed5aa2943786a7abea6b9444d802763e4cc7cc6d2ec0f10fd140aa769d6e17ee

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page