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

Uploaded Source

Built Distribution

tweakpane-0.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tweakpane-0.0.2.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for tweakpane-0.0.2.tar.gz
Algorithm Hash digest
SHA256 a5b212cde44a4c1e81a703137c951af5a3df0d7da29b8ee495677d91932dcd4b
MD5 3a4a07fd79c68725d0ad48bb621e6ce8
BLAKE2b-256 2799d045f0a635f72ecfb381fcc21adbe83bc4866adb5d9bb2f731636724ff76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tweakpane-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for tweakpane-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 63439d14d538bdd353b2e9dd466a2f59664d4be42d16fe07fc5de45d989d4fda
MD5 7f734c0fea32d45ceead0bb1cd201823
BLAKE2b-256 4c73d32f8b551fa3fd717711307af233bcb2cd05f149f053ed61827279e90dc7

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