Skip to main content

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
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"

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)

Uploaded Source

Built Distribution

tweakpane-0.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for tweakpane-0.0.0.tar.gz
Algorithm Hash digest
SHA256 06d50193dd2020f454c9e8bf22d537158c6b3b03ec81d0794c272e11b45f53d9
MD5 77b3c651c6526f0026d4160dcfd163e3
BLAKE2b-256 dc31f6e4d8ff27d2bccfce7f917f4b3090f4ede3cbfee6c33bb17001d63d632e

See more details on using hashes here.

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

Hashes for tweakpane-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8ee033af7a44db34199e4ee0ae3c131012a2f2b5c4a7dc02c2f59a23ea31ff8
MD5 900d581cce8fc181c1e13d79a69e9c56
BLAKE2b-256 25993584cc39dd65c9ab15b9d6687100abb45215019e6439e99b6af65ee54611

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